/* ====================================
   License Easy - Frontend Styles
   Modern 2025 Design - Customer Portal
   ==================================== */

/* Prevent horizontal scroll on login page */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Reset & Base */
.le-customer-portal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.le-customer-portal * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Login Page - Fresh Modern Design */
.le-customer-portal {
    min-height: auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.le-login-hero {
    position: relative;
    width: 100%;
    max-width: 450px;
    z-index: 1;
}

/* Animated Background Shapes */
.le-login-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.le-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.le-shape-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #fff 0%, transparent 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.le-shape-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(225deg, #fff 0%, transparent 100%);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.le-shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(315deg, #fff 0%, transparent 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* Login Card */
.le-login-content {
    position: relative;
    z-index: 2;
}

.le-login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Header */
.le-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.le-login-icon {
    display: inline-flex;
    margin-bottom: 20px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.le-login-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.le-login-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Login Tabs */
.le-login-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 4px;
    background: #f8fafc;
    border-radius: 12px;
}

.le-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.le-tab-btn:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.le-tab-btn.active {
    background: #fff;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.le-tab-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Login Form */
.le-login-form {
    margin-bottom: 20px;
}

.le-form-group {
    margin-bottom: 20px;
}

.le-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.le-form-label svg {
    color: #667eea;
    width: 16px;
    height: 16px;
}

.le-input-wrapper {
    position: relative;
}

.le-form-control {
    width: 100%;
    padding: 12px 45px 12px 16px;
    font-size: 14px;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background: #fff;
}

.le-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.le-form-control::placeholder {
    color: #cbd5e1;
}

.le-form-control.le-input-valid {
    border-color: #22c55e;
    background: #f0fdf4;
}

.le-form-control.le-input-invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.le-validation-icon,
.le-validation-spinner {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    font-size: 16px;
    font-weight: bold;
    pointer-events: none;
}

.le-validation-icon.le-valid {
    color: #22c55e;
    animation: scaleIn 0.3s ease;
}

.le-validation-icon.le-invalid {
    color: #ef4444;
    animation: shake 0.5s ease;
}

.le-validation-spinner svg {
    animation: spin 1s linear infinite;
    color: #667eea;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
    }
    25% {
        transform: translateY(-50%) translateX(-5px);
    }
    75% {
        transform: translateY(-50%) translateX(5px);
    }
}

.le-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.le-form-hint.le-hint-valid {
    color: #166534;
    font-weight: 600;
}

.le-form-hint.le-hint-invalid {
    color: #991b1b;
    font-weight: 600;
}

/* Submit Button */
.le-btn-login {
    width: 100%;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.le-btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.le-btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.le-btn-login:hover::before {
    left: 100%;
}

.le-btn-login:active {
    transform: translateY(0);
}

.le-btn-login:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    box-shadow: none;
}

.le-btn-icon {
    flex-shrink: 0;
}

.le-btn-loader {
    flex-shrink: 0;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Message */
.le-message {
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.5;
}

.le-message-success {
    background: #dcfce7;
    color: #166534;
    border-left: 4px solid #22c55e;
}

.le-message-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Login Footer */
.le-login-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.le-login-help {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f3f4ff 100%);
    border-radius: 10px;
    font-size: 12px;
    color: #475569;
    line-height: 1.5;
}

.le-login-help svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #667eea;
    width: 14px;
    height: 14px;
}

.le-login-help a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.le-login-help a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* ====================================
   Customer Portal - Logged In View
   ==================================== */

.le-frontend-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px;
    min-height: 100vh;
    background: #f9fafb;
}

.le-modern-header {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.le-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.le-user-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.le-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.le-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.le-user-greeting {
    font-size: 26px;
    font-weight: 400;
    color: #374151;
    margin: 0;
}

.le-user-greeting span {
    font-weight: 700;
    color: #111827;
}

.le-user-email-text {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.le-header-btns {
    display: flex;
    gap: 12px;
}

.le-header-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.le-header-btn svg {
    flex-shrink: 0;
}

.le-header-btn-light {
    background: #f3f4f6;
    color: #374151;
}

.le-header-btn-light:hover {
    background: #e5e7eb;
}

.le-header-btn-primary {
    background: #667eea;
    color: #fff;
}

.le-header-btn-primary:hover {
    background: #5568d3;
}

.le-header-btn-danger {
    background: #fef2f2;
    color: #dc2626;
}

.le-header-btn-danger:hover {
    background: #fee2e2;
}

/* Email Update Notice */
.le-email-update-notice {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffe9a8 100%);
    border: 2px solid #ffc107;
    border-radius: 16px;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
}

.le-notice-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.le-notice-content {
    flex: 1;
}

.le-notice-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: #664d03;
    margin: 0 0 8px 0;
}

.le-notice-content p {
    font-size: 14px;
    color: #856404;
    margin: 0 0 16px 0;
    line-height: 1.6;
}

.le-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.4);
}

.le-btn-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8f 100%);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

/* Email Update Form */
.le-email-update-form {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.le-email-update-form h3 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px 0;
}

.le-form-description {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.le-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.le-email-update-form .le-form-group {
    margin-bottom: 0;
}

.le-email-update-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.le-email-update-form .le-form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.le-email-update-form .le-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.le-email-update-form .le-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.le-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.le-btn-success {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.le-btn-success:hover {
    background: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.le-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 2px solid #e2e8f0;
}

.le-btn-secondary:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.le-licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.le-license-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.le-license-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.le-license-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.le-license-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
}

.le-license-details {
    margin-bottom: 24px;
}

.le-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.le-detail-row:last-child {
    border-bottom: none;
}

.le-license-code-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.le-full-license-code {
    flex: 1;
    word-break: break-all;
    font-size: 13px;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 6px;
    color: #475569;
    font-family: 'Courier New', Courier, monospace;
}

.le-btn-copy-code {
    flex-shrink: 0;
    background: #667eea;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.le-btn-copy-code svg {
    color: #fff;
}

.le-btn-copy-code:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.le-btn-copy-code.le-copy-success {
    background: #10b981;
}

.le-detail-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
}

.le-detail-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 500;
    text-align: right;
    word-break: break-all;
}

/* Simple Minimalist Support Status */
.le-support-simple {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

.le-support-simple-active {
    background: #d1fae5;
    color: #065f46;
}

.le-support-simple-expiring,
.le-support-simple-expiring-soon {
    background: #fef3c7;
    color: #92400e;
}

.le-support-simple-expired {
    background: #fecaca;
    color: #991b1b;
}

.le-support-simple-unknown {
    background: #f1f5f9;
    color: #64748b;
}

/* Frontend Utility Classes */
.le-modal {
    display: none;
}

.le-validation-icon,
.le-validation-spinner {
    display: none;
}

.le-btn-loader {
    display: none;
}

.le-support-date-text {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.le-addons-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.le-addons-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.le-addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.le-addon-item span {
    font-size: 14px;
    color: #334155;
}

.le-license-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: #fffbeb;
    border-left: 3px solid #fbbf24;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #78350f;
}

.le-license-note strong {
    display: block;
    margin-bottom: 6px;
    color: #78350f;
}

.le-license-actions {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
}

.le-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    line-height: 1;
}

.le-btn-danger {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    width: 100%;
    justify-content: center;
}

.le-btn-danger:hover {
    background: #dc2626;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
}

.le-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.le-badge-success {
    background: #dcfce7;
    color: #166534;
}

.le-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.le-badge-error {
    background: #fee2e2;
    color: #991b1b;
}

.le-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.le-badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.le-badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.le-badge-addon {
    background: #fef3c7;
    color: #92400e;
}

.le-no-licenses {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border: 2px dashed #e2e8f0;
    border-radius: 16px;
}

.le-no-licenses p {
    margin: 0;
    font-size: 18px;
    color: #64748b;
}

/* Support Status Indicators */
.le-detail-support {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0;
}

.le-support-active {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.le-support-expiring {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.le-support-expiring-soon {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
    font-weight: 600;
    font-size: 13px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.le-support-expired {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #868f96 0%, #596164 100%);
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.le-support-unknown {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: #e0e0e0;
    color: #666;
    font-weight: 600;
    font-size: 13px;
}

.le-support-renew {
    display: block;
    margin-top: 8px;
    color: #e74c3c;
    font-size: 12px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .le-frontend-wrapper {
        padding: 30px 16px;
    }
    
    .le-licenses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .le-license-card {
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .le-login-card {
        padding: 28px 20px;
    }
    
    .le-login-title {
        font-size: 24px;
    }
    
    .le-login-subtitle {
        font-size: 13px;
    }
    
    .le-btn-login {
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .le-form-control {
        padding: 11px 14px;
        font-size: 14px;
    }
    
    .le-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .le-license-code-row {
        flex-direction: column;
        width: 100%;
    }
    
    .le-full-license-code {
        width: 100%;
        font-size: 11px;
    }
    
    .le-btn-copy-code {
        width: 100%;
        padding: 10px;
    }
    
    .le-detail-value {
        text-align: left;
    }
}

.le-ticket-detail-customer {
    max-width: 900px;
    margin: 0 auto;
}

.le-ticket-header-card {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.le-ticket-header-card h2 {
    margin: 0 0 16px 0;
    font-size: 24px;
    color: #1e293b;
}

.le-ticket-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.le-ticket-conversation {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.le-ticket-conversation h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #1e293b;
}

.le-message-box {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 12px 0;
    font-size: 14px;
}

.le-message-box.le-success {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #047857;
}

.le-message-box.le-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #dc2626;
}

.le-portal-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 0 0 0;
    border-top: 1px solid #e2e8f0;
}

.le-portal-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.le-portal-tab:hover {
    background: #f1f5f9;
    color: #475569;
    transform: translateY(-1px);
}

.le-portal-tab svg {
    flex-shrink: 0;
}

.le-portal-tab-active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.le-portal-tab-active:hover {
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .le-portal-tabs {
        flex-direction: column;
    }
    
    .le-portal-tab {
        width: 100%;
        justify-content: center;
    }
}

#category-suggestion {
    cursor: pointer;
    padding: 8px 12px;
    background: #f0fdf4;
    border-left: 3px solid #10b981;
    border-radius: 4px;
    margin-top: 8px;
    display: block !important;
    transition: all 0.2s;
}

#category-suggestion:hover {
    background: #dcfce7;
    transform: translateX(4px);
}

#category-suggestion:active {
    transform: translateX(2px);
}

.le-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.le-stat-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.le-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.le-stat-icon {
    font-size: 32px;
    line-height: 1;
}

.le-stat-content {
    flex: 1;
}

.le-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 4px;
}

.le-stat-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.le-stat-success {
    border-left: 4px solid #10b981;
}

.le-stat-success .le-stat-value {
    color: #10b981;
}

.le-stat-secondary {
    border-left: 4px solid #64748b;
}

.le-stat-secondary .le-stat-value {
    color: #64748b;
}

.le-stat-info {
    border-left: 4px solid #3b82f6;
}

.le-stat-info .le-stat-value {
    color: #3b82f6;
}

.le-stat-warning {
    border-left: 4px solid #f59e0b;
}

.le-stat-warning .le-stat-value {
    color: #f59e0b;
}

.le-stat-danger {
    border-left: 4px solid #dc2626;
}

.le-stat-danger .le-stat-value {
    color: #dc2626;
}

.le-tickets-list {
    margin-top: 20px;
}

.le-ticket-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.le-ticket-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.le-ticket-card-header {
    margin-bottom: 12px;
}

.le-ticket-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 12px;
}

.le-ticket-card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    color: #1e293b;
}

.le-ticket-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #64748b;
}

.le-ticket-number {
    font-weight: 600;
    color: #3b82f6;
}

.le-ticket-date {
    color: #94a3b8;
}

.le-ticket-card-last-reply {
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    margin: 10px 0;
    font-size: 13px;
    color: #475569;
}

.le-ticket-card-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.le-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.le-empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.le-empty-state h3 {
    font-size: 20px;
    color: #1e293b;
    margin-bottom: 10px;
}

.le-empty-state p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
}

.le-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.le-badge-danger {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

.le-badge-info {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.le-badge-warning {
    background: #fef3c7;
    color: #d97706;
    border: 1px solid #fcd34d;
}

.le-badge-success {
    background: #d1fae5;
    color: #059669;
    border: 1px solid #6ee7b7;
}

.le-create-ticket-container {
    max-width: 800px;
    margin: 0 auto;
}

.le-form-group {
    margin-bottom: 20px;
}

.le-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.le-required {
    color: #dc2626;
}

.le-input,
.le-select,
.le-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s;
    background: #fff;
}

.le-input:focus,
.le-select:focus,
.le-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.le-textarea {
    resize: vertical;
    min-height: 120px;
}

.le-form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #64748b;
}

.le-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.le-message {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.le-message-admin {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.le-message-customer {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
}

.le-message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.le-message-sender {
    display: flex;
    align-items: center;
    gap: 10px;
}

.le-sender-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.le-avatar-admin {
    background: #dbeafe;
}

.le-avatar-customer {
    background: #dcfce7;
}

.le-sender-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.le-sender-info strong {
    font-size: 14px;
    color: #1e293b;
}

.le-message-time {
    font-size: 12px;
    color: #94a3b8;
}

.le-message-body {
    font-size: 14px;
    line-height: 1.6;
    color: #475569;
}

/* Promotional Banner */
.le-promo-banner {
    margin-top: 40px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    /* Background color set via inline style from admin settings */
}

.le-promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.le-promo-content {
    display: flex;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.le-promo-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    backdrop-filter: blur(10px);
}

.le-promo-text {
    flex: 1;
}

.le-promo-text h3 {
    margin: 0 0 8px 0;
    /* color set via inline style from admin settings */
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.le-promo-text p {
    margin: 0;
    /* color set via inline style from admin settings */
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.6;
}

.le-promo-action {
    flex-shrink: 0;
}

.le-btn-promo {
    /* background and color set via inline style from admin settings */
    border: none !important;
    padding: 14px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.le-btn-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

.le-btn-promo:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.le-promo-message {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #fff;
}

.le-promo-message.le-message-success {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.le-promo-message.le-message-error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
}

@media (max-width: 768px) {
    .le-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .le-ticket-card-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .le-form-actions {
        flex-direction: column;
    }
    
    .le-form-actions .le-btn {
        width: 100%;
        justify-content: center;
    }
    
    .le-promo-content {
        flex-direction: column;
        text-align: center;
    }
    
    .le-promo-text h3 {
        font-size: 18px;
    }
    
    .le-promo-text p {
        font-size: 13px;
    }
    
    .le-btn-promo {
        width: 100%;
        justify-content: center;
    }
    
    .le-modern-header {
        padding: 24px 20px;
    }
    
    .le-header-content {
        flex-direction: column;
        align-items: stretch;
    }
    
    .le-user-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .le-user-greeting {
        font-size: 22px;
    }
    
    .le-header-btns {
        flex-direction: column;
        width: 100%;
    }
    
    .le-header-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .le-header-btns span {
        display: none;
    }
    
    .le-header-btn {
        padding: 10px;
    }
}

/* Promo Request Modal */
.le-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.le-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.le-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.le-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
}

.le-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.le-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.le-modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.le-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.le-modal-body p {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 15px;
}

.le-modal-body textarea.le-form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #1f2937;
    resize: vertical;
    transition: all 0.2s;
}

.le-modal-body textarea.le-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.le-form-hint {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #9ca3af;
}

.le-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.le-modal-footer .le-btn {
    margin: 0;
}

.le-request-preview {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.le-preview-row {
    display: flex;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.le-preview-row:last-child {
    border-bottom: none;
}

.le-preview-label {
    font-weight: 500;
    color: #6b7280;
    min-width: 120px;
    font-size: 14px;
}

.le-preview-value {
    flex: 1;
    color: #1f2937;
    font-size: 14px;
    word-break: break-word;
}

@media (max-width: 640px) {
    .le-modal-container {
        max-width: 100%;
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: 95vh;
    }
    
    .le-modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .le-modal-header,
    .le-modal-body,
    .le-modal-footer {
        padding: 20px;
    }
    
    .le-modal-footer {
        flex-direction: column-reverse;
    }
    
    .le-modal-footer .le-btn {
        width: 100%;
        justify-content: center;
    }
    
    .le-preview-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .le-preview-label {
        min-width: auto;
    }
}