/* ===========================
   Essential Governance Theme
   Custom styles for Corporate Governance landing page
   =========================== */

:root {
    --bg: hsl(16 16% 8%);
    --fg: hsl(210 40% 98%);
    --muted: hsl(215 16% 20%);
    --muted-fg: hsl(215 20% 75%);
    --border: hsl(215 16% 22%);
    --primary: hsl(25 95% 60%);
    --card-bg: linear-gradient(135deg,  #ee1c2530 0%, #1f2431 50%, #7bb0ef14 100%);
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0,0,0,.25);
    --maxw: 1200px;
    --transition: 200ms ease;
}

/* ==================================================
   Styles extracted from signup.html
   Moved here so the sub-site uses a single stylesheet
   ================================================== */

/* Additional signup page specific styles (extracted) */
.signup-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 60px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-header h1 {
    font-size: 2.5em;
    color: var(--fg);
    margin-bottom: 10px;
}

.signup-header p {
    color: var(--muted-fg);
    font-size: 1.1em;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--muted);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.2);
}

.progress-step.completed .step-number {
    background: var(--primary);
}

.step-label {
    font-size: 0.9rem;
    color: var(--muted-fg);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Signup Steps */
.signup-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.signup-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-step h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--fg);
}

.step-description {
    color: var(--muted-fg);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Pricing Tiers for Selection */
.pricing-tiers-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tier-card {
    background: var(--muted);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.tier-card.selected {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.2);
    background: linear-gradient(135deg, rgba(238, 28, 37, 0.05) 0%, rgba(31, 36, 49, 0.8) 50%, rgba(123, 176, 239, 0.03) 100%);
}



.tier-card:not(.selected) {
    opacity: 0.85;
}

.tier-card.selected:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.tier-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tier-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--fg);
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.tier-price .period {
    font-size: 1rem;
    color: var(--muted-fg);
    font-weight: 400;
}

.tier-description {
    color: var(--muted-fg);
    margin-bottom: 20px;
    min-height: 50px;
}

.tier-features {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
}

.tier-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--fg);
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Forms */
.signup-form {
    max-width: 900px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--fg);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--muted);
    color: var(--fg);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

.form-group input.error {
    border-color: #e74c3c;
}

.password-requirements {
    font-size: 0.85rem;
    color: var(--muted-fg);
    margin-top: 5px;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    color: #2ecc71;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.success-message.show {
    display: block;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
    color: var(--fg);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: var(--primary);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: hsl(25 95% 50%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.3);
}

.btn-primary:disabled {
    background: var(--muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    background: transparent;
    color: var(--fg);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--muted);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-next {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Payment Section */
.plan-summary {
    background: var(--muted);
    border-radius: var(--radius);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.plan-summary h3 {
    margin-bottom: 15px;
    color: var(--fg);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    border-bottom: none;
    border-top: 2px solid var(--primary);
    padding-top: 15px;
    margin-top: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.summary-label {
    color: var(--muted-fg);
}

.summary-value {
    font-weight: 600;
    color: var(--fg);
}

.free-tier-message {
    text-align: center;
    padding: 40px;
    background: var(--muted);
    border-radius: var(--radius);
    margin-bottom: 30px;
    border: 2px solid var(--primary);
}

.free-tier-message .success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.free-tier-message h3 {
    color: var(--fg);
    margin-bottom: 10px;
}

.free-tier-message p {
    color: var(--muted-fg);
}

.promo-code-input {
    display: flex;
    gap: 10px;
}

.promo-code-input input {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.alert.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.alert-success {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-left: 4px solid #2ecc71;
}

/* Footer */
.signup-footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    color: var(--muted-fg);
}

.signup-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.signup-footer a:hover {
    text-decoration: underline;
}

/* Utilities */
.hidden {
    display: none !important;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--muted-fg);
    font-size: 1.1rem;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design (extracted) */
@media (max-width: 1200px) {
    .pricing-tiers-selection {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .pricing-tiers-selection {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .signup-container {
        padding: 20px;
        margin: 20px;
    }

    .signup-header h1 {
        font-size: 1.8rem;
    }

    .progress-bar {
        margin-bottom: 30px;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .step-label {
        display: none;
    }
}

/* Override main container to be vertical and full width */
.main-container {
    display: block !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Make chat interface full width and vertical */
.chat-interface {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: none !important;
    overflow: visible !important;
}

/* Hero Section - Split Layout */
.book-hero {
    background: linear-gradient(135deg,  #ee1c2530 0%, #1f2431 50%, #7bb0ef14 100%);
    color: white;
    padding: 80px 40px;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    min-height: 500px;
}

.book-hero-cover {
    flex-shrink: 0;
    width: 300px;
}

.book-hero-cover img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.book-hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.book-hero h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: 700;
}

.book-hero .subtitle {
    font-size: 1.5em;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.5;
}

.book-hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive hero layout */
@media (max-width: 768px) {
    .book-hero {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
    }

    .book-hero-cover {
        width: 250px;
    }

    .book-hero-content {
        text-align: center;
    }

    .book-hero h1 {
        font-size: 2.5em;
    }

    .book-hero .subtitle {
        font-size: 1.2em;
    }

    .book-hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .book-hero-buttons .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* Content sections - full width, stacked vertically */
.book-info-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.book-info-section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: var(--text-primary);
}

.book-info-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    width: 100%;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8em;
}

.info-card p, .info-card ul {
    font-size: 1.1em;
    line-height: 1.8;
}

.author-section, .contributors-section, .assistants-section {
    width: 100%;
    padding: 80px 40px;
}

.profile-card {
    display: flex;
    gap: 30px;
    align-items: start;
    margin: 30px 0;
    padding: 30px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    font-weight: bold;
    flex-shrink: 0;
}

.profile-info h4 {
    margin: 0 0 10px 0;
    color: var(--text-primary);
    font-size: 1.5em;
}

.profile-info p {
    margin: 10px 0;
    color: var(--muted-fg);
    font-size: 1.0em;
    line-height: 1.6;
}

.profile-info-small p {
    margin: 10px 0;
    color: var(--muted-fg);
    font-size: 0.9em;
    line-height: 1.4;
}

/* Pricing Section - Vertical Stack */
.pricing-section {
    background: var(--bg-secondary);
    padding: 80px 40px;
    width: 100%;
}

.pricing-section h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.pricing-section > p {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2em;
    margin-bottom: 60px;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 50px 40px;
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.pricing-card:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.pricing-card.featured {
    border-color: var(--primary);
    background: var(--card-bg);
    box-shadow: 0 0 30px rgba(255, 127, 80, 0.3);
}

.pricing-card h3 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--text-primary);
    text-align: center;
}

.pricing-card .price {
    font-size: 3.5em;
    font-weight: bold;
    color: var(--primary);
    margin: 30px 0;
    text-align: center;
}

.pricing-card .price span {
    font-size: 0.4em;
    color: var(--text-secondary);
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.pricing-card ul li {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1em;
}

.pricing-card ul li:before {
    content: "✓ ";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

.pricing-card button {
    width: 100%;
    margin-top: 20px;
}

.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px 50px;
    border-radius: 8px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 600;
}

.cta-button:hover {
    background: hsl(25 95% 50%);
    transform: translateY(-2px);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-button.secondary:hover {
    background: var(--primary);
    color: white;
}

/* Resources Section */
.resources-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.resources-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
}

.resource-link {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, border-color 0.2s;
    display: block;
}

.resource-link h4 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.resource-link:hover {
    transform: translateX(10px);
    border-color: var(--primary);
}

/* Chat Section */
.chat-login-prompt {
    text-align: center;
    padding: 80px 40px;
    margin: 0;
    width: 100%;
}

.chat-login-prompt h2 {
    margin-bottom: 20px;
    font-size: 2.5em;
}

.chat-login-prompt p {
    font-size: 1.2em;
    margin: 20px 0;
}

/* Hide elements for single-book page */
.side-helper-panel {
    display: none !important;
}

/* Side menu - make it overlay style instead of taking space */
.side-menu {
    display: block !important;
    position: fixed !important;
    top: 60px !important;
    width: 280px !important;
    height: calc(100vh - 60px) !important;
    transition: left 0.3s ease !important;
    z-index: 1000 !important;
    background: var(--bg, #1a1a2e) !important;
    border-right: 1px solid var(--border, #333) !important;
    overflow-y: auto !important;
    padding: 20px !important;
    color: var(--fg, #fff) !important;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.side-menu.open {
    left: 0 !important;
}

.side-menu h2 {
    color: var(--fg, #fff) !important;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    margin: 10px 0;
}

.side-menu ul li a {
    color: var(--muted-fg, #ccc) !important;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s;
}

.side-menu ul li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--fg, #fff) !important;
}

/* Keep nav toggle visible for menu */
.nav-toggle {
    display: inline-block !important;
}

/* Ensure body takes full width and can scroll */
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    background-image: url('Cover CG4th-dark.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Sticky top banner with smooth scroll effect */
.top-banner {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding-left: 20px;
    z-index: 2000 !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: var(--bg, #1a1a2e) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-size: 16px;
}

.top-banner.scrolled {
    background: rgba(26, 26, 46, 0.95) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 60px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Assistants showcase in about section */
.assistants-section .book-info-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .book-hero h1 {
        font-size: 4em;
    }

    .assistants-section .book-info-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Utility classes */
.container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 0 20px;
}

.muted {
    color: var(--muted-fg);
}

.endorsement-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.grid {
    display: grid;
    gap: 1rem;
}

section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

ul.clean {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc li, .aud li {
    display: flex;
    gap: .5rem;
    align-items: flex-start;
    color: var(--muted-fg);
}

.toc li::before {
    content: "✔";
    color: var(--primary);
    margin-top: .1rem;
}

.aud li::before {
    content: "◼";
    color: var(--primary);
    font-size: .6rem;
    margin-top: .4rem;
}

.home-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--muted);
}

.home-carousel {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

@media(max-width:800px) {
    .home-carousel {
        grid-template-columns: 1fr;
    }
}

.home-dots {
    display: flex;
    gap: .3rem;
    margin-top: 10px;
}

.home-dot {
    height: 6px;
    border-radius: 999px;
    background: var(--fg);
}

.home-dot.active {
    width: 24px;
    background: var(--primary);
}

.home-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
}

.home-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border: 1px solid var(--border);
    background: var(--primary);
    color: var(--fg);
    padding: .7rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform var(--transition), opacity var(--transition);
    font-weight: 600;
}

.home-btn:hover {
    transform: translateY(-1px);
}

.home-btn.secondary {
    background: transparent;
    color: var(--fg);
}

.home-btn.outline {
    background: transparent;
    border-color: var(--border);
}

.home-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-center {
    display: grid;
    place-items: center;
}

/* Pricing */
.home-container {
    max-width: var(--maxw);
    margin-inline: auto;
    padding: 0 20px;
}

.pricing {
    display: grid;
    gap: 1rem;
}

@media(min-width:900px) {
    .pricing {
        grid-template-columns: repeat(3,1fr);
    }
}

.price {
    font-size: 32px;
    font-weight: 900;
}

table.compare {
    width: 100%;
    border-collapse: collapse;
}

table.compare th, table.compare td {
    padding: .75rem;
    border-top: 1px solid var(--border);
    text-align: left;
}

table.compare thead {
    background: color-mix(in hsl, var(--bg), #fff 8%);
}

.pill {
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 999px;
    background: color-mix(in hsl, var(--primary), #000 80%);
    color: var(--fg);
    font-size: .75rem;
    border: 1px solid color-mix(in hsl, var(--primary), #000 60%);
}

.endorsement-scroll {
    max-height: 1200px;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .endorsement-scroll {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }

    #about-grid {
        grid-template-columns: 1fr !important;
    }

    #about-grid .hide-on-mobile {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

.endorsement-scroll::-webkit-scrollbar {
    display: none;
}

/* ===========================
   Authentication Modal
   =========================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

.modal-overlay.hidden {
    display: none;
}

.auth-card {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: calc(100% - 40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--muted-fg);
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fg);
}

.auth-card h2 {
    color: var(--fg);
    margin-bottom: 25px;
    font-size: 2em;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.auth-card .form-group label {
    display: block;
    color: var(--muted-fg);
    margin-bottom: 8px;
    font-size: 0.95em;
}

.auth-card .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg);
    font-size: 1em;
    transition: border-color 0.2s;
}

.auth-card .form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-card .auth-button {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 600;
    margin-top: 10px;
}

.auth-card .auth-button:hover {
    background: hsl(25 95% 50%);
    transform: translateY(-2px);
}

.auth-card .error-message {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: rgb(239, 68, 68);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95em;
}

.auth-card .success-message {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: rgb(34, 197, 94);
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.95em;
}

.auth-card .error-message.hidden,
.auth-card .success-message.hidden {
    display: none;
}

.auth-card .auth-switch {
    text-align: center;
    margin-top: 25px;
    color: var(--muted-fg);
    font-size: 0.95em;
}

.auth-card .auth-switch a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: color 0.2s;
}

.auth-card .auth-switch a:hover {
    color: hsl(25 95% 50%);
    text-decoration: underline;
}

/* Responsive modal */
@media (max-width: 768px) {
    .auth-card {
        padding: 30px 25px;
    }

    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 28px;
    }
}

/* ===========================
   Signup Notification Banner
   =========================== */

.signup-notification {
    position: fixed;
    top: 80px; /* Below the fixed header */
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: calc(100% - 40px);
    max-width: 600px;
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.signup-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
}

.signup-notification.notification-success .notification-content {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.1) 100%);
    border-color: rgba(34, 197, 94, 0.5);
}

.signup-notification.notification-error .notification-content {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-color: rgba(239, 68, 68, 0.5);
}

.notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.notification-success .notification-icon {
    background: rgba(34, 197, 94, 0.3);
    color: rgb(34, 197, 94);
}

.notification-error .notification-icon {
    background: rgba(239, 68, 68, 0.3);
    color: rgb(239, 68, 68);
}

.notification-message {
    flex: 1;
    color: var(--fg);
}

.notification-message strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.notification-success .notification-message strong {
    color: rgb(34, 197, 94);
}

.notification-error .notification-message strong {
    color: rgb(239, 68, 68);
}

.notification-message p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--muted-fg);
}

.notification-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--muted-fg);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--fg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .signup-notification {
        top: 70px;
        width: calc(100% - 20px);
    }

    .notification-content {
        padding: 15px 20px;
    }

    .notification-icon {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .notification-message strong {
        font-size: 1em;
    }

    .notification-message p {
        font-size: 0.9em;
    }
}

/* ===========================
   Account Page Styles
   =========================== */

.account-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 100px 40px 60px;
}

.account-title {
    color: var(--fg);
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
}

.account-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
}

.account-section h2 {
    color: var(--primary);
    font-size: 1.8em;
    margin-bottom: 25px;
}

.account-section h3 {
    color: var(--fg);
    font-size: 1.3em;
    margin-bottom: 15px;
}

.account-section h4 {
    color: var(--muted-fg);
    font-size: 1.1em;
    margin-bottom: 12px;
}

/* Profile Form */
.profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.profile-form .form-field {
    display: flex;
    flex-direction: column;
}

.profile-form .form-field label {
    color: var(--muted-fg);
    font-size: 0.95em;
    margin-bottom: 8px;
}

.profile-form .form-field input[type="text"],
.profile-form .form-field input[type="email"],
.profile-form .form-field input[type="tel"] {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg);
    font-size: 1em;
    transition: border-color 0.2s;
}

.profile-form .form-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.profile-form .form-field input[readonly] {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.02);
}

.profile-form .form-field small {
    margin-top: 5px;
    font-size: 0.85em;
}

.profile-form .form-field label input[type="checkbox"] {
    margin-right: 8px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    background: hsl(25 95% 50%);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(239, 68, 68);
    border: 2px solid rgba(239, 68, 68, 0.5);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.3);
    border-color: rgb(239, 68, 68);
}

.btn-remove {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(239, 68, 68);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Messages */
.message {
    padding: 12px;
    border-radius: 8px;
    font-size: 0.95em;
    margin-top: 10px;
}

.message.success {
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: rgb(34, 197, 94);
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: rgb(239, 68, 68);
}

.message.info {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: rgb(59, 130, 246);
}

.message.hidden {
    display: none;
}

/* Subscription Details */
.subscription-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.subscription-header h3 {
    color: var(--fg);
    font-size: 1.8em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.subscription-price {
    color: var(--muted-fg);
    font-size: 1.2em;
    margin: 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(34, 197, 94);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: rgb(239, 68, 68);
}

.status-badge.expired {
    background: rgba(251, 191, 36, 0.2);
    color: rgb(251, 191, 36);
}

.status-badge.trial {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(59, 130, 246);
}

.subscription-dates {
    display: flex;
    gap: 30px;
}

.date-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-item .label {
    color: var(--muted-fg);
    font-size: 0.9em;
}

.date-item .value {
    color: var(--fg);
    font-size: 1.1em;
    font-weight: 600;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.features-list li {
    color: var(--fg);
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-check {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2em;
}

.subscription-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Premium Group Management */
.group-capacity {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 25px;
    font-size: 1.1em;
    color: var(--fg);
}

.available-seats {
    color: var(--primary);
    margin-left: 15px;
    font-weight: 600;
}

.add-member-form {
    margin-bottom: 30px;
}

.add-member-form .form-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.add-member-form input[type="email"] {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg);
    font-size: 1em;
}

.add-member-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.members-list-container {
    margin-top: 25px;
}

.members-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.member-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.member-email {
    color: var(--fg);
    font-size: 1em;
    font-weight: 600;
}

.member-date {
    font-size: 0.85em;
}

.empty-state {
    color: var(--muted-fg);
    font-style: italic;
    text-align: center;
    padding: 30px;
}

/* Danger Section */
.danger-section {
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.danger-section h2 {
    color: rgb(239, 68, 68);
}

/* Clickable Avatar */
.user-avatar.clickable {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-avatar.clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.3);
}

/* Modal Enhancements for Account Page */
.modal-card h3 {
    color: var(--fg);
    margin-bottom: 20px;
    font-size: 1.5em;
}

.modal-card p {
    color: var(--muted-fg);
    line-height: 1.6;
    margin-bottom: 20px;
}

#modalInput {
    margin: 20px 0;
}

#modalInput label {
    display: block;
    color: var(--muted-fg);
    margin-bottom: 10px;
    font-size: 0.95em;
}

#confirmationInput {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg);
    font-size: 1em;
}

#confirmationInput:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-end;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 5000;
    font-size: 1em;
    font-weight: 600;
    transition: opacity 0.3s, transform 0.3s;
}

.toast.hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.toast.success {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.toast.error {
    background: rgba(239, 68, 68, 0.9);
    color: white;
}

.toast.info {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

/* Loading State */
.loading {
    color: var(--muted-fg);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

/* Responsive - Account Page */
@media (max-width: 768px) {
    .account-container {
        padding: 80px 20px 40px;
    }

    .account-section {
        padding: 25px 20px;
    }

    .account-title {
        font-size: 2em;
    }

    .profile-form .form-row {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .subscription-dates {
        flex-direction: column;
        gap: 15px;
    }

    .subscription-actions {
        flex-direction: column;
    }

    .subscription-actions button {
        width: 100%;
    }

    .add-member-form .form-row {
        flex-direction: column;
    }

    .add-member-form button {
        width: 100%;
    }

    .member-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .btn-remove {
        width: 100%;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
}

/* ===========================
   Utility Classes
   =========================== */

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted-fg);
}

/* ===========================
   Signup/Upgrade Page Shared Styles
   =========================== */

.signup-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 40px 60px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}



.signup-title {
    font-size: 2.5em;
    color: var(--fg);
    margin-bottom: 10px;
    text-align: center;
}

.signup-subtitle {
    color: var(--muted-fg);
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
}

/* Progress Bar */
.signup-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.signup-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--muted);
    color: var(--fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 10px;
    transition: var(--transition);
}

.progress-step.active .step-number {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.2);
}

.progress-step.completed .step-number {
    background: var(--primary);
}

.step-label {
    font-size: 0.9rem;
    color: var(--muted-fg);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* Signup Steps */
.signup-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.signup-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.signup-step h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--fg);
}

/* Pricing Tiers for Selection */
.pricing-tiers-selection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.tier-card {
    background: var(--muted);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.tier-card.selected {
    border-color: var(--primary);
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(255, 127, 80, 0.2);
    background: linear-gradient(135deg, rgba(238, 28, 37, 0.05) 0%, rgba(31, 36, 49, 0.8) 50%, rgba(123, 176, 239, 0.03) 100%);
}

.tier-card:not(.selected) {
    opacity: 0.85;
}

.tier-card.selected:hover {
    transform: translateY(-5px);
    opacity: 1;
}

.tier-select-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tier-select-btn:hover:not(:disabled) {
    background: hsl(25 95% 50%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.3);
}

.tier-select-btn:disabled {
    background: var(--muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
}

.price-period {
    font-size: 1rem;
    color: var(--muted-fg);
    font-weight: 400;
}

.tier-description {
    color: var(--muted-fg);
    margin-bottom: 20px;
    min-height: 50px;
}

.tier-features {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
    text-align: left;
}

.tier-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--fg);
    font-size: 0.9em;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 1.1em;
    flex-shrink: 0;
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-primary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--primary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: hsl(25 95% 50%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 127, 80, 0.3);
}

.btn-primary:disabled {
    background: var(--muted);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    padding: 12px 30px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: transparent;
    color: var(--fg);
}

.btn-secondary:hover {
    background: var(--muted);
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--muted-fg);
    font-size: 1.1em;
}

.confirmation-text {
    text-align: center;
    color: var(--muted-fg);
    font-size: 1.1em;
    margin: 20px 0;
}

/* Success Checkmark Animation */
.success-checkmark {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--primary);
}

.check-icon .icon-line {
    height: 5px;
    background-color: var(--primary);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.check-icon .line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.check-icon .line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.check-icon .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(255, 127, 80, 0.5);
}

.check-icon .icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: var(--card-bg);
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 37px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 48px;
    }
    100% {
        width: 25px;
        left: 14px;
        top: 45px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 47px;
        right: 8px;
        top: 38px;
    }
}

/* ===========================
   Upgrade Page Specific Styles
   =========================== */

.current-plan-badge {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: rgb(59, 130, 246);
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1em;
}

.tier-card.current-tier {
    opacity: 0.7;
    border-color: rgba(59, 130, 246, 0.5);
}

.tier-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
}

.tier-badge.current {
    background: rgba(59, 130, 246, 0.2);
    color: rgb(59, 130, 246);
}

.tier-badge.upgrade {
    background: rgba(34, 197, 94, 0.2);
    color: rgb(34, 197, 94);
}

.tier-badge.downgrade {
    background: rgba(251, 191, 36, 0.2);
    color: rgb(251, 191, 36);
}

.plan-comparison {
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: center;
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.comparison-column {
    flex: 1;
    max-width: 250px;
}

.comparison-column h3 {
    color: var(--muted-fg);
    font-size: 0.95em;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-align: center;
}

.plan-details {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}

.plan-details .plan-name {
    color: var(--fg);
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
}

.plan-details .plan-price {
    color: var(--primary);
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.comparison-arrow {
    color: var(--primary);
    font-size: 2em;
    font-weight: bold;
}

.warning-message {
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: rgb(251, 191, 36);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
}

.warning-message strong {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.warning-message p {
    margin: 0;
    line-height: 1.6;
}

.payment-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.payment-section h3 {
    color: var(--fg);
    margin-bottom: 15px;
}

.payment-section .form-group {
    margin-top: 20px;
}

.payment-section .form-group label {
    display: block;
    color: var(--muted-fg);
    margin-bottom: 8px;
    font-size: 0.95em;
}

.payment-section .form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--fg);
    font-size: 1em;
}

.payment-section .form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.error-alert {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: rgb(239, 68, 68);
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 6000;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-overlay p {
    color: var(--fg);
    margin-top: 20px;
    font-size: 1.1em;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive - Signup/Upgrade Pages */
@media (max-width: 768px) {
    .signup-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .signup-title {
        font-size: 1.8em;
    }

    .signup-subtitle {
        font-size: 1em;
    }

    .signup-progress::before {
        left: 5%;
        right: 5%;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .signup-step h2 {
        font-size: 1.5rem;
    }

    .pricing-tiers-selection {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tier-card {
        padding: 25px;
    }

    .step-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .plan-comparison {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }

    .comparison-column {
        max-width: 100%;
        width: 100%;
    }
}
