@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #10a37f;
    --primary-dark: #0d8a6b;
    --primary-light: #1ab88c;
    --secondary: #19c37d;
    --background: #212121;
    --surface: #2f2f2f;
    --surface-hover: #3e3e3e;
    --text: #ececec;
    --text-secondary: #9a9a9a;
    --border: #565656;
    --success: #10a37f;
    --warning: #f59e0b;
    --error: #ef4444;
    --blur-amount: 20px;
    --pro-gold: #fbbf24;
    --pro-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 163, 127, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    animation: gradientShift 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 5%) rotate(180deg); }
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0.3px);
    pointer-events: none;
    z-index: 1;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: #171717;
    border-right: 1px solid var(--border);
    backdrop-filter: blur(var(--blur-amount));
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.new-search-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.new-search-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.new-search-btn i {
    width: 18px;
    height: 18px;
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.history-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.history-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.search-history {
    padding: 0 1rem;
}

.no-history {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.no-history i {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-history p {
    font-size: 0.9rem;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.history-item.history-loading {
    opacity: 0.7;
    cursor: default;
}

.history-item:not(.history-loading):hover {
    background: var(--surface-hover);
    border-color: var(--border);
    transform: translateX(4px);
}

.history-loading-icon {
    animation: spin 1s linear infinite;
}

.history-item-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.history-item-content i {
    width: 18px;
    height: 18px;
    color: var(--primary);
    flex-shrink: 0;
}

.history-item-text {
    flex: 1;
    min-width: 0;
}

.history-item-query {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.history-delete-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.history-item:hover .history-delete-btn {
    opacity: 1;
}

.history-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.history-delete-btn i {
    width: 16px;
    height: 16px;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile:hover {
    background: var(--surface-hover);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar i {
    width: 20px;
    height: 20px;
    color: white;
}

.pro-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--pro-gradient);
    border: 2px solid #171717;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 800;
    color: #000;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-display-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pro-badge-inline {
    background: var(--pro-gradient);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0.25rem;
}

.logout-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.logout-btn:hover {
    background: var(--surface-hover);
    border-color: var(--error);
}

.logout-btn i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.logout-btn:hover i {
    color: var(--error);
}

.signin-prompt {
    text-align: center;
}

.signin-prompt p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.signin-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.signin-btn i {
    width: 18px;
    height: 18px;
}

.sidebar-toggle {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 101;
    backdrop-filter: blur(var(--blur-amount));
    box-shadow: var(--shadow-md);
}

.sidebar-toggle:hover {
    background: var(--surface-hover);
    transform: scale(1.05);
}

.sidebar-toggle i {
    width: 24px;
    height: 24px;
    color: var(--text);
}

.main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.profile-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 680px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.profile-content::-webkit-scrollbar {
    display: none;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.profile-header i {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.profile-body {
    padding: 2rem;
}

.profile-section {
    margin-bottom: 2rem;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.profile-section-title i {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.profile-avatar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background);
    border-radius: 16px;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--border);
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-large i {
    width: 50px;
    height: 50px;
    color: white;
}

.pro-badge-large {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--pro-gradient);
    border: 3px solid var(--surface);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    color: #000;
}

.profile-input-group {
    width: 100%;
}

.profile-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.profile-input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.2);
}

.profile-save-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.profile-save-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.subscription-info {
    padding: 1.5rem;
    background: var(--background);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.subscription-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pro-badge-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--pro-gradient);
    color: #000;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
}

.pro-badge-text i {
    width: 18px;
    height: 18px;
}

.free-badge-text {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--surface-hover);
    color: var(--text-secondary);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
}

.followup-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.followup-stats-header span:first-child {
    color: var(--text-secondary);
}

.followup-count {
    font-weight: 600;
    color: var(--text);
}

.followup-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.followup-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.followup-warning {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--warning);
}

.subscription-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upgrade-section-wrapper {
    padding: 2rem;
    background: rgba(16, 163, 127, 0.1);
    border: 1px solid rgba(16, 163, 127, 0.3);
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.upgrade-header {
    text-align: center;
    margin-bottom: 2rem;
}

.upgrade-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.upgrade-badge i {
    width: 16px;
    height: 16px;
}

.upgrade-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.upgrade-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
}

.pricing-card {
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.pricing-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.pricing-amount sup {
    font-size: 1.5rem;
    font-weight: 600;
    vertical-align: super;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.pricing-feature i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.pricing-feature-content {
    flex: 1;
}

.pricing-feature-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.pricing-feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.upgrade-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
}

.upgrade-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.upgrade-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.upgrade-btn i {
    width: 20px;
    height: 20px;
}

.upgrade-guarantee {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.upgrade-guarantee-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.upgrade-guarantee-text i {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.cancel-subscription-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cancel-subscription-btn:hover {
    background: var(--surface-hover);
    border-color: var(--error);
    color: var(--error);
}

.cancel-message {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    color: var(--error);
    font-size: 0.875rem;
    text-align: center;
}

.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.auth-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.auth-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.auth-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.2);
}

.auth-error {
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: var(--error);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.auth-submit-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.auth-toggle {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-toggle-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-toggle-btn:hover {
    color: var(--primary-dark);
}

.signin-promo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: fadeIn 0.3s ease;
}

.signin-promo-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
}

.promo-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-close-btn:hover {
    background: var(--surface-hover);
    transform: scale(1.05);
}

.promo-close-btn i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.promo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.promo-icon i {
    width: 32px;
    height: 32px;
    color: white;
}

.promo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.promo-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.promo-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 12px;
}

.promo-feature i {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.promo-feature div {
    flex: 1;
}

.promo-feature strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.promo-feature span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.promo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.promo-signin-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.promo-signin-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.promo-signin-btn i {
    width: 18px;
    height: 18px;
}

.promo-continue-btn {
    width: 100%;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-continue-btn:hover {
    background: var(--surface-hover);
    border-color: var(--text-secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 3rem;
    backdrop-filter: blur(var(--blur-amount));
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.nav-items {
    display: flex;
    gap: 0.75rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-1px);
}

.nav-btn i {
    width: 16px;
    height: 16px;
}

.settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.settings-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.settings-content::-webkit-scrollbar {
    display: none;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.settings-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
}

.settings-header i {
    width: 24px;
    height: 24px;
    color: var(--text-secondary);
}

.close-btn {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.close-btn:hover {
    background: var(--surface-hover);
    transform: scale(1.05);
}

.close-btn i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.settings-body {
    padding: 2rem;
}

.setting-group {
    margin-bottom: 2rem;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.setting-label i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.setting-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.radio-option:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
    transform: translateX(4px);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.radio-option:has(input:checked) {
    background: rgba(16, 163, 127, 0.1);
    border-color: var(--primary);
}

.radio-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.radio-content strong {
    font-size: 0.95rem;
    color: var(--text);
}

.radio-content span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.settings-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.save-settings-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.5rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.save-settings-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.save-settings-btn i {
    width: 16px;
    height: 16px;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    backdrop-filter: blur(var(--blur-amount));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.search-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.2), var(--shadow-md);
    transform: translateY(-2px);
}

.search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin-right: 1rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 400;
    padding: 0.875rem 0;
}

.search-input::placeholder {
    color: var(--text-secondary);
}

.search-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 0 0 rgba(16, 163, 127, 0.4);
}

.search-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.3), var(--shadow-md);
}

.search-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.3);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.search-btn i {
    width: 18px;
    height: 18px;
}

.loading-state {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 2rem;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.progress-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto 0;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-stage {
    font-size: 0.875rem;
    color: var(--text);
    font-weight: 500;
}

.progress-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 50px;
    text-align: right;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--primary);
    border-radius: 10px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
    position: relative;
}

.results-section {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(var(--blur-amount));
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.summary-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.card-header i {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.card-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.summary-content {
    line-height: 1.7;
    color: var(--text);
    font-size: 1rem;
}

.summary-text p,
.recommendations-text p,
.summary-text div,
.recommendations-text div {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.summary-text strong,
.recommendations-text strong {
    color: var(--text);
    font-weight: 600;
}

.summary-text em,
.recommendations-text em {
    font-style: italic;
    color: var(--text);
}

.summary-text p:last-child,
.recommendations-text p:last-child,
.summary-text div:last-child,
.recommendations-text div:last-child {
    margin-bottom: 0;
}

.recommendations-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.recommendations-title {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.recommendations-title i {
    width: 18px;
    height: 18px;
}

.recommendations-text {
    line-height: 1.7;
}

.sources-info {
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--background);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.sources-info i {
    width: 16px;
    height: 16px;
}

.followup-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(var(--blur-amount));
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.followup-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.followup-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.followup-header i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.followup-header h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.followup-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.followup-input-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.followup-input {
    flex: 1;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.followup-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.2);
}

.followup-input::placeholder {
    color: var(--text-secondary);
}

.followup-input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.followup-btn {
    background: var(--primary);
    border: none;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.followup-btn:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.followup-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.followup-btn i {
    width: 18px;
    height: 18px;
    color: white;
}

.followup-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.followup-response-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(var(--blur-amount));
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.followup-response-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.followup-question-display {
    background: rgba(16, 163, 127, 0.1);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.followup-question-display strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.followup-answer {
    line-height: 1.7;
    color: var(--text);
}

.followup-answer p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.followup-answer strong {
    color: var(--text);
    font-weight: 600;
}

.view-toggle {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn:hover {
    background: var(--surface-hover);
    transform: translateY(-1px);
}

.toggle-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.toggle-btn i {
    width: 16px;
    height: 16px;
}

.results-container {
    display: grid;
    gap: 1.5rem;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(var(--blur-amount));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.result-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.result-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-favicon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.result-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--surface);
    padding: 2px;
    border-radius: 6px;
}

.result-favicon i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.result-info {
    flex: 1;
}

.result-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.result-url {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.result-source {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--background);
    border-radius: 8px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.5rem;
}

.result-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 1rem;
    font-size: 0.9375rem;
}

.results-container.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
}

.result-card.icon-mode {
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.result-card.icon-mode .result-header {
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
}

.result-card.icon-mode .result-favicon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 0.5rem;
}

.result-card.icon-mode .result-favicon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    border-radius: 10px;
}

.result-card.icon-mode .result-favicon i {
    width: 32px;
    height: 32px;
}

.result-card.icon-mode .result-title {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-card.icon-mode .result-description,
.result-card.icon-mode .result-url {
    display: none;
}

.result-card.icon-mode .result-source {
    margin-top: 0;
}

.iframe-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.iframe-modal.show {
    opacity: 1;
}

.iframe-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    width: 95%;
    height: 90%;
    max-width: 1600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.iframe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.iframe-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    flex: 1;
    overflow: hidden;
}

.iframe-title i {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.iframe-title span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iframe-actions {
    display: flex;
    gap: 0.5rem;
}

.iframe-fullscreen-btn,
.iframe-open-btn,
.iframe-close-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: var(--text-secondary);
}

.iframe-fullscreen-btn:hover,
.iframe-open-btn:hover,
.iframe-close-btn:hover {
    background: var(--surface-hover);
    transform: scale(1.05);
}

.iframe-fullscreen-btn i,
.iframe-open-btn i,
.iframe-close-btn i {
    width: 18px;
    height: 18px;
}

.iframe-body {
    flex: 1;
    overflow: hidden;
    position: relative;
    background: var(--surface);
    border-radius: 0 0 16px 16px;
}

.iframe-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 16px 16px;
}

.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    z-index: 10;
}

.iframe-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.iframe-loading p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.iframe-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    z-index: 10;
}

.fallback-icon {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.fallback-icon i {
    width: 40px;
    height: 40px;
    color: white;
}

.iframe-fallback h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.iframe-fallback p {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.fallback-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: var(--primary);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.fallback-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.fallback-button i {
    width: 18px;
    height: 18px;
}

.iframe-content:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

.iframe-content:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

.iframe-content:-moz-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

.iframe-content:-ms-fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
}

.iframe-content:fullscreen .iframe-header,
.iframe-content:fullscreen .iframe-body,
.iframe-content:fullscreen .iframe-body iframe {
    border-radius: 0;
}

.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(var(--blur-amount));
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 380px;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.notification-success {
    border-color: var(--success);
    background: rgba(16, 163, 127, 0.1);
}

.notification-success i {
    color: var(--success);
}

.notification-error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.1);
}

.notification-error i {
    color: var(--error);
}

.notification-warning {
    border-color: var(--warning);
    background: rgba(245, 158, 11, 0.1);
}

.notification-warning i {
    color: var(--warning);
}

.notification-info {
    border-color: var(--primary);
    background: rgba(16, 163, 127, 0.1);
}

.notification-info i {
    color: var(--primary);
}

.footer {
    margin-top: 6rem;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-links i {
    width: 18px;
    height: 18px;
}

.error-404 {
    text-align: center;
    padding: 4rem 2rem;
    margin: 4rem 0;
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-404-content {
    max-width: 600px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 3rem 2rem;
    backdrop-filter: blur(var(--blur-amount));
    box-shadow: var(--shadow-md);
}

.error-404-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--error) 0%, #dc2626 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.error-404-icon i {
    width: 44px;
    height: 44px;
    color: white;
}

.error-404-content h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.error-404-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--primary);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.error-404-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.error-404-btn i {
    width: 18px;
    height: 18px;
}

.checkout-container {
    display: none;
    width: 100%;
    min-height: 450px;
    margin-top: 1.5rem;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.checkout-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-header i {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.checkout-close-btn {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 10px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout-close-btn:hover {
    background: var(--surface-hover);
    transform: scale(1.05);
}

.checkout-close-btn i {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

#checkoutContainer {
    width: 100%;
    min-height: 500px;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: flex;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.sidebar-open {
        margin-left: 0;
    }

    .container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-wrapper {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .search-icon {
        display: none;
    }
    
    .search-input {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-items {
        width: 100%;
        justify-content: center;
    }
    
    .results-container.icon-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .summary-card {
        padding: 1.5rem;
    }

    .result-card {
        padding: 1.25rem;
    }

    .notification {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    .view-toggle {
        flex-direction: column;
        gap: 0.5rem;
    }

    .toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .settings-content,
    .profile-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .settings-header,
    .settings-body,
    .settings-footer,
    .profile-header,
    .profile-body {
        padding: 1.5rem;
    }
    
    .radio-option {
        padding: 0.75rem;
    }

    .followup-input-wrapper {
        flex-direction: column;
    }
    
    .followup-btn {
        width: 100%;
        height: 44px;
    }

    .iframe-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .iframe-header {
        padding: 1rem;
    }
    
    .iframe-title {
        font-size: 0.9rem;
    }
    
    .iframe-body iframe {
        border-radius: 0;
    }
    
    .progress-container {
        max-width: 100%;
    }
    
    .progress-stage {
        font-size: 0.8125rem;
    }
    
    .progress-percentage {
        font-size: 0.9375rem;
    }
    
    .signin-promo-content {
        width: 95%;
        padding: 2rem 1.5rem;
    }
    
    .promo-title {
        font-size: 1.375rem;
    }
    
    .promo-subtitle {
        font-size: 0.875rem;
    }
    
    .promo-feature {
        padding: 0.875rem;
    }
    
    .promo-feature strong {
        font-size: 0.9rem;
    }
    
    .promo-feature span {
        font-size: 0.8125rem;
    }
    
    .error-404 {
        padding: 2rem 1rem;
    }
    
    .error-404-content {
        padding: 2rem 1.5rem;
    }
    
    .error-404-icon {
        width: 64px;
        height: 64px;
    }
    
    .error-404-icon i {
        width: 36px;
        height: 36px;
    }
    
    .error-404-content h2 {
        font-size: 1.375rem;
    }
    
    .error-404-content p {
        font-size: 0.95rem;
    }
    
    .profile-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .profile-avatar-large i {
        width: 40px;
        height: 40px;
    }
    
    .upgrade-section-wrapper {
        padding: 1.5rem;
    }
    
    .upgrade-title {
        font-size: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.875rem;
    }

    .logo-text {
        font-size: 1.125rem;
    }

    .card-header h3 {
        font-size: 1.125rem;
    }

    .result-title {
        font-size: 1rem;
    }
    
    .promo-icon {
        width: 56px;
        height: 56px;
    }
    
    .promo-icon i {
        width: 28px;
        height: 28px;
    }
    
    .promo-title {
        font-size: 1.25rem;
    }
    
    .error-404-content h2 {
        font-size: 1.25rem;
    }
    
    .upgrade-title {
        font-size: 1.375rem;
    }
    
    .pricing-amount {
        font-size: 2.25rem;
    }
}
