/**
 * Karma Activator Customer Portal CSS - Modern Design
 */

/* Portal Container */
.karma-customer-portal {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    min-height: 80vh;
}

/* Navigation Sidebar */
.portal-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    position: sticky;
    top: 30px;
    height: fit-content;
    overflow: hidden;
}

.portal-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.portal-user-info .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
}

.user-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.portal-menu {
    list-style: none;
    margin: 0;
    padding: 15px 0;
}

.portal-menu li {
    margin: 0;
}

.portal-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 25px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    border-left: 4px solid transparent;
}

.portal-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: white;
    padding-left: 30px;
}

.portal-menu li.active a {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border-left-color: white;
    font-weight: 700;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.1);
}

.portal-menu li a .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Portal Content */
.portal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-height: 600px;
}

.portal-content h2 {
    color: #2c3e50;
    margin-bottom: 35px;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dashboard */
.portal-dashboard {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border: 2px solid #e9ecef;
    padding: 30px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.stat-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Alert Boxes */
.dashboard-alert {
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 35px;
    display: flex;
    gap: 20px;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
    animation: slideInDown 0.5s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-warning {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 6px solid #ffc107;
}

.alert-icon {
    background: #ffc107;
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.alert-icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: white;
}

.alert-content {
    flex: 1;
}

.alert-content h3 {
    color: #856404;
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.alert-content p {
    margin: 0 0 15px 0;
    color: #856404;
    line-height: 1.6;
}

.expiring-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 12px;
}

.expiring-list li {
    padding: 10px 0;
    color: #856404;
    border-bottom: 1px solid rgba(133, 100, 4, 0.2);
}

.expiring-list li:last-child {
    border-bottom: none;
}

/* Quick Links */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.quick-link-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    overflow: hidden;
}

.quick-link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    transition: left 0.4s ease;
}

.quick-link-card:hover::before {
    left: 0;
}

.quick-link-card:hover {
    border-color: #667eea;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.25);
}

.quick-link-card .dashicons {
    font-size: 42px;
    width: 42px;
    height: 42px;
    color: #667eea;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.quick-link-card:hover .dashicons {
    transform: scale(1.15) rotate(5deg);
}

.quick-link-card span:not(.dashicons) {
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Tables */
.portal-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.portal-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portal-table th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 700;
    color: white;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.portal-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #495057;
    font-size: 1rem;
}

.portal-table tbody tr {
    transition: all 0.3s ease;
}

.portal-table tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.01);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Status Badges */
.order-status,
.license-status,
.ticket-status {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.status-pending {
    background: linear-gradient(135deg, #fff3cd 0%, #ffc107 100%);
    color: #856404;
}

.status-processing {
    background: linear-gradient(135deg, #cfe2ff 0%, #0d6efd 100%);
    color: #084298;
}

.status-completed {
    background: linear-gradient(135deg, #d1e7dd 0%, #28a745 100%);
    color: #0a3622;
}

.status-active {
    background: linear-gradient(135deg, #d1e7dd 0%, #28a745 100%);
    color: #0a3622;
}

.status-inactive,
.status-cancelled {
    background: linear-gradient(135deg, #f8d7da 0%, #dc3545 100%);
    color: #842029;
}

.status-expired {
    background: linear-gradient(135deg, #e2e3e5 0%, #6c757d 100%);
    color: #41464b;
}

.status-open {
    background: linear-gradient(135deg, #cfe2ff 0%, #0d6efd 100%);
    color: #084298;
}

.status-in_progress {
    background: linear-gradient(135deg, #fff3cd 0%, #ffc107 100%);
    color: #856404;
}

.status-closed {
    background: linear-gradient(135deg, #e2e3e5 0%, #6c757d 100%);
    color: #41464b;
}

/* Licenses Grid */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 25px;
}

.license-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.license-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.license-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.license-card.expiring {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.license-card.expiring::before {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.license-card.inactive {
    opacity: 0.6;
    filter: grayscale(50%);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.license-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
}

.license-details {
    margin-bottom: 15px;
}

.license-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}

.license-detail-row .label {
    font-weight: 600;
    color: #6c757d;
}

.license-key {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
}

.lifetime-badge {
    color: #28a745;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.expiring-text {
    color: #dc3545;
    font-weight: 600;
}

.license-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.btn-download,
.btn-renew {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-size: 1rem;
}

.btn-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-download:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-download .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.btn-renew {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-renew:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-renew .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Tickets */
.tickets-actions {
    margin-bottom: 25px;
}

.ticket-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ticket-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 700;
}

.ticket-form .form-group {
    margin-bottom: 20px;
}

.ticket-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1rem;
}

.ticket-form input[type="text"],
.ticket-form textarea,
.ticket-form select {
    width: 100%;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.ticket-form input:focus,
.ticket-form textarea:focus,
.ticket-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.ticket-form textarea {
    resize: vertical;
    min-height: 150px;
    font-family: inherit;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.tickets-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ticket-item {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ticket-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ticket-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: #667eea;
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ticket-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.ticket-header h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ticket-header h3 a:hover {
    color: #667eea;
}

.ticket-meta {
    display: flex;
    gap: 25px;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.ticket-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ticket Detail */
.ticket-detail-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.ticket-detail-header h3 {
    flex: 1;
    margin: 0;
    color: #2c3e50;
}

.ticket-conversation {
    margin-bottom: 25px;
}

.ticket-message {
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.message-customer {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 5px solid #667eea;
}

.message-admin {
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border-left: 5px solid #0d6efd;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.message-header strong {
    color: #2c3e50;
    font-size: 1.05rem;
    font-weight: 700;
}

.message-date {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
}

.message-content {
    color: #495057;
    line-height: 1.8;
    font-size: 1rem;
}

.ticket-reply-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ticket-reply-form h4 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
    font-weight: 700;
}

/* Profile */
.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.profile-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.profile-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.profile-table tr:last-child {
    border-bottom: none;
}

.profile-table th,
.profile-table td {
    padding: 15px 0;
    text-align: left;
}

.profile-table th {
    width: 220px;
    font-weight: 700;
    color: #6c757d;
    font-size: 0.95rem;
}

.profile-table td {
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
}

.profile-note {
    margin-top: 20px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #e7f3ff 0%, #f0f8ff 100%);
    border-radius: 12px;
    border-left: 5px solid #0d6efd;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: #084298;
    line-height: 1.6;
}

.profile-note .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white !important ;
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn-view-order {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

.btn-view-order:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-view-order .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.btn-back {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-back:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Empty State */
.portal-empty {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    border: 2px dashed #e9ecef;
}

.portal-empty .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: #667eea;
    opacity: 0.4;
    margin-bottom: 20px;
}

.portal-empty p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 25px;
    font-weight: 500;
}

/* Login Form */
.portal-login-wrapper {
    max-width: 480px;
    margin: 80px auto;
}

.portal-login-box {
    background: white;
    padding: 50px 45px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    position: relative;
    overflow: hidden;
}

.portal-login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portal-login-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
}

.portal-login-box > p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    line-height: 1.6;
}

.portal-login-box form {
    margin-top: 25px;
}

.portal-login-box label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    display: block;
}

.portal-login-box input[type="text"],
.portal-login-box input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.portal-login-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.portal-login-box input[type="submit"] {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.portal-login-box input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-links {
    text-align: center;
    margin-top: 20px;
}

.login-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-links a:hover {
    text-decoration: underline;
    color: #764ba2;
}

/* Portal Messages */
.portal-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.portal-message.success {
    background: #d1e7dd;
    color: #0a3622;
    border-left: 4px solid #28a745;
}

.portal-message.error {
    background: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
}

/* Responsive */
@media (max-width: 1024px) {
    .karma-customer-portal {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .portal-navigation {
        position: relative;
        top: 0;
    }
    
    .portal-menu {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 8px;
        padding: 10px;
    }
    
    .portal-menu li a {
        padding: 12px 15px;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .portal-menu li a:hover {
        padding-left: 15px;
    }
}

@media (max-width: 768px) {
    .karma-customer-portal {
        padding: 15px;
        gap: 20px;
    }
    
    .portal-content {
        padding: 25px 20px;
    }
    
    .portal-content h2 {
        font-size: 2rem;
    }
    
    .portal-menu {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 25px 20px;
    }
    
    .stat-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quick-link-card {
        padding: 25px 15px;
    }
    
    .licenses-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-table-wrapper {
        overflow-x: auto;
        margin: 0 -20px;
        padding: 0 20px;
    }
    
    .portal-table {
        min-width: 800px;
    }
    
    .portal-login-wrapper {
        margin: 40px auto;
    }
    
    .portal-login-box {
        padding: 35px 25px;
    }
}

@media (max-width: 480px) {
    .portal-menu {
        grid-template-columns: 1fr;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
}

