/* ========================================
   Simply10 - Premium Dark Theme
   ======================================== */

:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(20, 20, 30, 0.6);
    --bg-card-hover: rgba(30, 30, 45, 0.7);

    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6a6a7a;

    --accent-primary: #8b5cf6;
    --accent-secondary: #a78bfa;
    --accent-glow: rgba(139, 92, 246, 0.3);

    --gradient-1: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f97316 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --gradient-3: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);

    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(139, 92, 246, 0.4);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Spacing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Animated Background
   ======================================== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 50%, rgba(236, 72, 153, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
}

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(20px, 30px) scale(1.02);
    }
}

/* ========================================
   App Container
   ======================================== */
.app-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
}

/* ========================================
   Header
   ======================================== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    margin-bottom: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    color: white;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.nav-btn span {
    display: none;
}

@media (min-width: 640px) {
    .nav-btn span {
        display: inline;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    text-align: center;
    padding: 48px 0 56px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.stat-icon {
    font-size: 18px;
}

/* ========================================
   Main Section
   ======================================== */
.main-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Input Card */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.input-card {
    padding: 24px;
}

.input-card:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

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

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-title svg {
    color: var(--accent-primary);
}

.char-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.input-textarea {
    width: 100%;
    min-height: 180px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.2s ease;
}

.input-textarea::placeholder {
    color: var(--text-muted);
}

.input-textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(0, 0, 0, 0.3);
}

/* ========================================
   Options Panel
   ======================================== */
.options-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.option-label svg {
    color: var(--accent-primary);
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.option-btn.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.option-emoji {
    font-size: 16px;
}

.option-select {
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    max-width: 300px;
}

.option-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.option-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ========================================
   Simplify Button
   ======================================== */
.simplify-btn {
    position: relative;
    width: 100%;
    padding: 18px 32px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-lg);
    color: white;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.simplify-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 60px var(--accent-glow);
}

.simplify-btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.simplify-btn.loading .btn-content {
    display: none;
}

.simplify-btn.loading .btn-loader {
    display: flex;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loader-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.loader-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* ========================================
   Output Section
   ======================================== */
.output-section {
    display: none;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
    animation: fadeInUp 0.5s ease;
}

.output-section.visible {
    display: flex;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.output-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.output-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.output-icon {
    font-size: 24px;
}

.output-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.action-btn.success {
    background: rgba(16, 185, 129, 0.2);
    border-color: var(--success);
    color: var(--success);
}

/* Output Cards */
.output-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(20px);
}

.output-card .card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.output-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.explanation-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.points-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.points-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.points-list li::before {
    content: "→";
    color: var(--accent-primary);
    font-weight: 600;
    flex-shrink: 0;
}

.analogy-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    padding-left: 16px;
    border-left: 3px solid var(--accent-primary);
}

.glossary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.glossary-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.glossary-term {
    font-weight: 600;
    color: var(--accent-secondary);
    font-size: 15px;
}

.glossary-definition {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.quiz-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quiz-question {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quiz-q {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.quiz-a {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--success);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    text-align: center;
    padding: 48px 0 32px;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-sub {
    margin-top: 8px;
    font-size: 13px;
    opacity: 0.7;
}

/* ========================================
   Modals
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
}

.modal-overlay.visible .modal {
    transform: translateY(0) scale(1);
}

.modal-large {
    max-width: 640px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 700;
}

.modal-header svg {
    color: var(--accent-primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* Settings Groups */
.settings-group {
    margin-bottom: 24px;
}

.settings-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.key-hint {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

.provider-options {
    display: flex;
    gap: 12px;
}

.provider-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.provider-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.provider-btn.active {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.provider-logo {
    font-size: 20px;
    font-weight: 800;
}

.key-input-wrapper {
    position: relative;
    display: flex;
}

.settings-input {
    flex: 1;
    padding: 14px 48px 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: all 0.2s ease;
}

.settings-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.settings-input::placeholder {
    color: var(--text-muted);
}

.toggle-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.toggle-visibility:hover {
    color: var(--text-primary);
}

.settings-select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

.settings-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.api-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.api-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.api-link:hover {
    color: var(--accent-primary);
}

.save-settings-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* History List */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
}

.empty-hint {
    font-size: 13px;
    margin-top: 8px;
    opacity: 0.7;
}

.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-card-hover);
}

.history-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.history-item-date {
    font-size: 12px;
    color: var(--text-muted);
}

.history-item-delete {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 18px;
    transition: color 0.2s ease;
}

.history-item-delete:hover {
    color: var(--error);
}

.history-item-preview {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.toast.visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: var(--error);
}

.toast-icon {
    font-size: 18px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 640px) {
    .app-container {
        padding: 16px;
    }

    .header {
        margin-bottom: 24px;
    }

    .logo-text {
        font-size: 20px;
    }

    .hero {
        padding: 32px 0 40px;
    }

    .hero-stats {
        gap: 16px;
    }

    .stat {
        font-size: 13px;
    }

    .option-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .option-emoji {
        font-size: 14px;
    }

    .output-actions {
        width: 100%;
    }

    .action-btn {
        flex: 1;
        justify-content: center;
    }

    .action-btn span {
        display: none;
    }
}
/* ========================================
   Pro / Locked Features
   ======================================== */
.locked-feature {
    position: relative;
    opacity: 0.7;
    cursor: not-allowed !important;
}

.locked-feature::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}

.locked-feature:hover::after {
    transform: scale(1.1);
}

.pro-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

/* Upgrade Modal */
.modal-large-xl {
    max-width: 900px;
}

.pricing-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    text-align: center;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.1), rgba(30, 27, 75, 0.4));
    border: 1px solid rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: 12px;
    right: -30px;
    background: #8b5cf6;
    color: white;
    padding: 4px 40px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: bold;
}

.pricing-title {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: left;
}

.pricing-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li.included {
    color: var(--text-primary);
}

.pricing-features li.excluded {
    color: rgba(255, 255, 255, 0.3);
}

.check-icon {
    color: #10b981;
}

.cross-icon {
    color: #ef4444;
}

.upgrade-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary-glow {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-primary-glow:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5);
    background: var(--primary-hover);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.license-input-group {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.license-input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 15px auto 0;
}

.license-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-primary);
    font-family: inherit;
}

.license-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.activate-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.activate-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.usage-limit-indicator {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
    margin-left: 10px;
    display: none;
}
.usage-limit-indicator.visible {
    display: inline-block;
}

