/* Shared Styles for Secondary Pages
   Used by: privacy, terms, gdpr, faq, about, agreement, cookie-policy, payment-success, 403, 404

   Requires: variables.css to be imported first
*/

/* =============================================
   Base Button System
   ============================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                background var(--transition-base);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-primary);
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-card);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--bg-danger);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    background: var(--bg-danger-hover);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
}

.btn-lg {
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--font-size-lg);
}

/* =============================================
   Base Card System
   ============================================= */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: transform var(--transition-base),
                border-color var(--transition-base),
                box-shadow var(--transition-base);
}

.card:hover {
    border-color: var(--border-light);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

.card-elevated:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-interactive {
    cursor: pointer;
}

.card-interactive:hover {
    transform: translateY(-4px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* =============================================
   Shared Animations
   ============================================= */

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

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

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

/* =============================================
   Utility Classes
   ============================================= */

.tracking-pixel {
    display: none;
    visibility: hidden;
}

/* =============================================
   Page Layout - Dark Theme (default)
   ============================================= */

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    font-weight: 300;
}

.last-updated {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* =============================================
   Content Sections
   ============================================= */

.content {
    background: transparent;
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: 1px solid var(--border-subtle);
}

.content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.content h2:first-child {
    margin-top: 0;
}

.content h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.content ul,
.content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
    color: var(--text-secondary);
}

.content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.content a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-slow);
}

.content a:hover {
    color: var(--color-secondary);
    text-decoration: underline;
}

/* =============================================
   Info/Contact Boxes
   ============================================= */

.contact-info,
.rights-section,
.info-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    margin: 2rem 0;
}

.contact-info h3,
.rights-section h3,
.info-box h3 {
    color: var(--text-primary);
    margin-top: 0;
}

/* =============================================
   Tables
   ============================================= */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th,
td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

th {
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 600;
}

td {
    color: var(--text-secondary);
}

/* =============================================
   Section Headers (About page style)
   ============================================= */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.section-icon i {
    font-size: 1.75rem;
    color: white;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============================================
   Buttons
   ============================================= */

.btn-primary-gradient {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-hover);
}

/* =============================================
   Navigation Logo Link (common override)
   ============================================= */

.nav-logo-link {
    text-decoration: none;
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 768px) {
    .page-container {
        padding: 5rem 1rem 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .content {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* =============================================
   Error Pages (403, 404)
   ============================================= */

.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: var(--bg-dark);
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-description {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.error-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.error-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-base);
}

.error-links a:hover {
    color: var(--color-primary);
}

/* =============================================
   Hidden Elements (tracking pixels)
   ============================================= */

.tracking-pixel,
.hidden-iframe {
    display: none;
    visibility: hidden;
}

/* =============================================
   FAQ Page Styles
   ============================================= */

/* Animatable CSS Custom Properties */
@property --gradient-angle {
    syntax: '<angle>';
    initial-value: 140deg;
    inherits: false;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-title {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.faq-subtitle {
    font-size: 1.25rem;
    color: var(--text-dim);
    font-weight: 300;
}

/* FAQ Search Box */
.faq-search {
    position: relative;
    margin-bottom: 3rem;
}

.faq-search input {
    width: 100%;
    padding: 1rem 3rem 1rem 3rem;
    font-size: 1rem;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all var(--transition-slow);
}

.faq-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.08);
}

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

.faq-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.faq-search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    padding: 0.5rem;
}

.faq-search-clear:hover {
    color: var(--color-primary);
}

/* FAQ Category Tabs */
.faq-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.25rem 1rem;
}

.faq-categories::-webkit-scrollbar {
    display: none;
}

.faq-category-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-slow);
    white-space: nowrap;
    flex-shrink: 0;
}

.faq-category-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-category-btn.active {
    position: relative;
    background: var(--gradient-primary-vertical);
    border-color: transparent;
    color: var(--text-primary);
    overflow: hidden;
    z-index: 0;
}

.faq-category-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary-vertical-hover);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
}

.faq-category-btn.active:hover::before {
    opacity: 1;
}

/* FAQ Section & Items */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.faq-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    font-weight: 300;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    padding: 0 1.5rem;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 0 1.5rem 1.25rem 1.5rem;
    opacity: 1;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* FAQ No Results */
.faq-no-results {
    text-align: center;
    padding: 3rem;
    display: none;
}

.faq-no-results i {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.faq-no-results h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.faq-no-results p {
    color: var(--text-dim);
}

/* FAQ Visibility Helper */
.faq-hidden {
    display: none !important;
}

/* FAQ Contact CTA */
.faq-contact-cta {
    background: none;
    border: none;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-top: 4rem;
}

.faq-contact-cta h3 {
    color: var(--text-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-contact-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.faq-contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary-vertical);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    overflow: hidden;
    z-index: 0;
}

.faq-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary-vertical-hover);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
}

.faq-contact-btn:hover::before {
    opacity: 1;
}

/* FAQ Responsive */
@media (max-width: 768px) {
    .faq-title {
        font-size: 2rem;
    }

    .faq-categories {
        gap: 0.5rem;
        justify-content: flex-start;
    }

    .faq-category-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }
}

/* =============================================
   About Page Styles (Light Theme)
   ============================================= */

.about-page {
    font-family: 'Inter', sans-serif;
    background: var(--light-bg);
    color: var(--light-text-body);
    min-height: 100vh;
}

/* About Hero Section */
.about-hero {
    background: var(--light-bg-white);
    padding: 8rem 2rem 5rem;
    text-align: center;
    border-bottom: 1px solid var(--light-border);
}

.about-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--light-text-dark);
    margin-bottom: 1rem;
}

.about-hero h1 span {
    color: var(--color-primary);
}

.about-hero p {
    font-size: 1.25rem;
    color: var(--light-text-gray);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section Base */
.about-section {
    padding: 5rem 2rem;
}

.about-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

/* About Section Headers (light theme override) */
.about-page .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text-dark);
    margin-bottom: 0.75rem;
    border-bottom: none;
}

.about-page .section-header p {
    font-size: 1.1rem;
    color: var(--light-text-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Table styling for light theme */
.about-page table th {
    background: var(--light-bg-gray);
    color: var(--light-text-dark);
    font-weight: 600;
}

.about-page table td {
    color: var(--light-text-body);
}

/* Story Section */
.section-story {
    background: var(--light-bg-gray);
    padding: 4rem 2rem;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--light-text-dark);
    margin-bottom: 1.5rem;
    text-align: left;
}

.story-content p {
    font-size: 1.1rem;
    color: var(--light-text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.story-content p:last-child {
    margin-bottom: 0;
}

/* Problem Section */
.section-problem {
    background: var(--light-bg-white);
    padding: 4rem 2rem;
}

/* Mission Section */
.section-mission {
    background: var(--light-bg-white);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--light-bg);
    border-radius: var(--radius-md);
    padding: 2rem;
    border-left: 4px solid var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feature-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--light-text-dark);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--light-text-gray);
    line-height: 1.6;
}

/* Technology Section */
.section-technology {
    background: var(--light-bg-gray);
}

.tech-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--light-text-muted);
    line-height: 1.8;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.value-item {
    background: var(--light-bg-white);
    border-radius: var(--radius-md);
    padding: 1.75rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.value-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.value-icon i {
    font-size: 1.25rem;
    color: var(--color-primary);
}

.value-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text-dark);
    margin-bottom: 0.5rem;
}

.value-content p {
    font-size: 0.95rem;
    color: var(--light-text-gray);
    line-height: 1.6;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 4rem;
    justify-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.team-member {
    text-align: center;
    max-width: 200px;
}

.team-photo {
    width: 150px;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text-dark);
    margin-bottom: 0.25rem;
}

.team-title {
    font-size: 0.9rem;
    color: var(--light-text-gray);
    line-height: 1.4;
}

/* Values Section */
.section-values {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.section-values .section-header h2 {
    color: var(--light-text-dark);
}

.section-values .section-header p {
    color: var(--light-text-muted);
}

/* About Page Footer Override */
.about-page .footer {
    background: #0A0A0B;
}

/* About Page Responsive */
@media (max-width: 768px) {
    .about-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 1.1rem;
    }

    .about-section {
        padding: 3rem 1.5rem;
    }

    .about-page .section-header h2 {
        font-size: 1.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Error Pages (403, 404) - Full Page Style
   ============================================= */

.error-page-full {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.error-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.error-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(118, 75, 162, 0.15) 0%, transparent 50%);
}

.error-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 50px 50px;
}

.error-container {
    max-width: 600px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.error-code-large {
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title-large {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.error-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-decoration: none;
}

.error-logo .logo-icon {
    width: 32px;
    height: 32px;
}

.error-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: var(--radius-md);
    transition: all var(--transition-slow);
}

.btn-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.error-nav-links {
    margin-top: 2rem;
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-nav-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-slow);
}

.error-nav-links a:hover {
    color: var(--color-secondary);
}

@media (max-width: 768px) {
    .error-code-large {
        font-size: 5rem;
    }

    .error-title-large {
        font-size: 1.5rem;
    }

    .error-message {
        font-size: 1rem;
    }
}

/* =============================================
   Agreement Page Styles
   ============================================= */

.agreement-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gradient-sidebar-reverse);
    color: var(--text-secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.agreement-container {
    max-width: 800px;
    width: 100%;
    background: rgba(22, 29, 38, 0.95);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.agreement-logo {
    text-align: center;
    margin-bottom: 30px;
}

.agreement-logo h1 {
    font-size: 2.5rem;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.agreement-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

.agreement-content {
    background: rgba(19, 25, 32, 0.7);
    border: 1px solid rgba(226, 227, 224, 0.1);
    border-radius: var(--radius-sm);
    padding: 30px;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto;
}

.agreement-content::-webkit-scrollbar {
    width: 8px;
}

.agreement-content::-webkit-scrollbar-track {
    background: rgba(226, 227, 224, 0.05);
    border-radius: 4px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background: var(--gradient-scrollbar);
    border-radius: 4px;
}

.agreement-content h3 {
    color: var(--color-blue);
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.agreement-content p,
.agreement-content li {
    line-height: 1.6;
    margin-bottom: 10px;
    color: rgba(226, 227, 224, 0.9);
}

.agreement-content ul {
    margin-left: 30px;
    margin-bottom: 15px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(19, 25, 32, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(226, 227, 224, 0.1);
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 15px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--color-blue);
}

.checkbox-container label {
    cursor: pointer;
    line-height: 1.5;
    color: var(--text-secondary);
}

.checkbox-container label a {
    color: var(--color-blue);
    text-decoration: none;
}

.checkbox-container label a:hover {
    text-decoration: underline;
}

.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-slow);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient-blue-purple);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

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

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(226, 227, 224, 0.3);
}

.btn-secondary:hover {
    background: rgba(226, 227, 224, 0.1);
}

.agreement-error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
}

.agreement-loading {
    display: none;
    text-align: center;
    padding: 20px;
}

.agreement-loading.active {
    display: block;
}

.agreement-loading-text {
    margin-top: 15px;
}

.warning-box {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-sm);
    padding: 15px;
    margin-bottom: 20px;
}

.warning-box strong {
    color: var(--color-warning);
}

/* =============================================
   Cookie Policy Page Styles
   ============================================= */

.cookie-policy-page {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-dark);
    min-height: 100vh;
}

.cookie-policy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.cookie-policy-header {
    text-align: center;
    padding: 3rem 0 2rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
}

.cookie-policy-logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1rem;
}

.cookie-policy-title {
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.cookie-policy-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.cookie-policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-policy-content h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin: 3rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
}

.cookie-policy-content h3 {
    color: var(--text-primary);
    font-size: 1.3rem;
    margin: 2rem 0 0.5rem;
}

.cookie-policy-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.cookie-policy-content ul {
    margin: 1rem 0 1rem 2rem;
}

.cookie-policy-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.cookie-highlight {
    background: rgba(102, 126, 234, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-primary);
    margin: 1.5rem 0;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.cookie-table th {
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
    font-weight: 600;
}

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

.cookie-type-essential {
    color: var(--color-success);
    font-weight: 600;
}

.cookie-type-analytics {
    color: var(--color-warning);
    font-weight: 600;
}

.cookie-type-marketing {
    color: var(--color-error);
    font-weight: 600;
}

.cookie-back-link {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all var(--transition-slow);
}

.cookie-back-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* =============================================
   Payment Success Page Styles
   ============================================= */

.payment-success-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--gradient-sidebar-reverse);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-container {
    text-align: center;
    max-width: 600px;
    width: 100%;
}

.success-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    line-height: 1;
}

.success-title {
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.order-ref {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.details-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-bottom: 2rem;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-size: 2rem;
    font-weight: 300;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.next-steps {
    text-align: left;
    margin-bottom: 2.5rem;
}

.next-steps h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: left;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.next-steps li:before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.btn-continue {
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--transition-slow);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    background: var(--gradient-primary-vertical);
    color: white;
    overflow: hidden;
    z-index: 0;
}

.btn-continue::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary-vertical-hover);
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: -1;
}

.btn-continue:hover::before {
    opacity: 1;
}

.redirect-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
}

.spinner-text-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-self: end;
}

.countdown-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    white-space: nowrap;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    flex-shrink: 0;
}

/* @keyframes spin is defined once at the top of this file */

@media (max-width: 768px) {
    .success-title {
        font-size: 2rem;
    }

    .plan-price {
        font-size: 1.5rem;
    }

    .redirect-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .spinner-text-wrapper {
        justify-self: center;
    }

    .countdown-text {
        font-size: 0.85rem;
    }
}
