/* ============================================
   CONSOLIDATED CSS - All Styles in One File
   ============================================ */

/* ===== GLOBAL STYLES ===== */
body {
    background-color: #ffffff;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    width: calc(100% - 120px);
    max-width: none;
    margin: 0 auto;
    padding: 20px 60px;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

/* ===== NAVBAR ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    margin-bottom: 60px;
}

.home-button-container {
    display: flex;
    align-items: center;
}

.auth-buttons {
    display: flex;
    gap: 12px;
}

.auth-button {
    padding: 8px 18px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-button:hover,
.auth-button:focus {
    color: #666666;
    outline: none;
}

.user-icon,
.home-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ===== TITLE & SUBTITLE ===== */
.title-row {
    margin-bottom: 12px;
    font-size: 96px;
    color: #333;
    padding-left: 14px;
}

.subtitle-row {
    margin-bottom: 96px;
    font-size: 24px;
    color: #666;
    font-weight: 400;
    padding-left: 20px;
}

/* ===== MAIN LAYOUT - SEARCH PAGE ===== */
.main-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

.column-left {
    flex: 1;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 0 0 20px;
}

.description {
    margin: 0;
}

.column-middle {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    padding-left: 20px;
}

.column-right {
    flex: 1;
    padding: 0px;
}

/* Responsive breakpoints */
@media screen and (max-width: 992px) {
    .column-left,
    .column-middle,
    .column-right {
        flex-basis: 100%;
    }
}

/* ===== FORM STYLES (Shared across pages) ===== */
.search-form,
.register-form,
.login-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    width: 100%;
    max-width: 300px;
}

.search-form input,
.register-form input,
.login-form input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.search-form input:focus,
.register-form input:focus,
.login-form input:focus {
    outline: 2px solid #0046FF;
    border-color: #0046FF;
}

.search-form button,
.register-form button,
.login-form button {
    padding: 12px 16px;
    background-color: #0046FF;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
    width: 100%;
}

.search-form button:hover,
.search-form button:focus,
.register-form button:hover,
.register-form button:focus,
.login-form button:hover,
.login-form button:focus {
    background-color: #0056b3;
}

.privacy-notice {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.5;
    text-align: center;
}

.privacy-notice a {
    color: #0046FF;
    text-decoration: none;
}

.privacy-notice a:hover {
    text-decoration: underline;
}

/* ===== SEARCH PAGE - FEATURES ===== */
.features-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    gap: 20px;
}

.feature-card {
    text-align: left;
    flex: 1;
    padding: 20px;
}

.feature-card svg {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 20px;
    margin: 0 0 8px 0;
    color: #333333;
    font-weight: 500;
}

.feature-card p {
    font-size: 16px;
    color: #666666;
    margin: 0;
}

.cta-button {
    padding: 12px 28px;
    background-color: #157d02;
    color: #ffffff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
}

.cta-button:hover,
.cta-button:focus {
    background-color: #218838;
    outline: none;
}

@media (max-width: 768px) {
    .features-row {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 80%;
        margin-bottom: 20px;
    }
}

/* ===== SEARCH RESULTS ===== */
#results {
    min-height: 200px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0;
}

.results-table th,
.results-table td {
    padding: 8px;
    text-align: left;
}

.stamp-alert {
    display: flex;
    align-items: flex-start;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.stamp-alert--primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.stamp-alert--success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.stamp-heading {
    margin: 0 0 0.5rem 0;
    font-weight: bold;
}

.stamp-heading--size-xs {
    font-size: 0.875rem;
}

.stamp-heading--color-subtle {
    color: #6c757d;
}

.stamp-alert .results-table th {
    background-color: transparent;
    font-weight: bold;
}

.stamp-alert .results-table th,
.stamp-alert .results-table td {
    border-color: #c3e6cb;
    padding: 0.5rem;
}

/* ===== REGISTER PAGE ===== */
.register-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.button-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request button {
    opacity: 0.7;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
}

.registration-success {
    text-align: center;
    padding: 40px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 24px;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.registration-success h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.success-message {
    margin-bottom: 32px;
}

.success-message p {
    color: #555;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.success-message strong {
    color: #000;
    font-weight: 600;
}

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

.login-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    text-align: center;
}

.login-btn:hover {
    background-color: #333;
}

.resend-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.resend-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
    color: #333;
}

.help-text {
    margin-top: 16px;
}

.help-text p {
    color: #888;
    font-size: 14px;
    line-height: 1.4;
}

#register-results {
    margin-top: 0;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    flex: 1;
    display: block;
}

#register-results:empty {
    display: none;
}

@media (max-width: 768px) {
    .registration-success {
        padding: 30px 15px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
    }

    .registration-success h2 {
        font-size: 24px;
    }

    .success-message p {
        font-size: 14px;
    }
}

/* ===== ACCOUNT PAGE ===== */
.main-content.account-page {
    justify-content: flex-start;
    align-items: stretch;
    padding-top: 40px;
}

.account-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.account-heading {
    font-size: 28px;
    margin: 0 0 32px 0;
    font-weight: 300;
    color: #333;
}

.account-layout {
    display: grid;
    grid-template-columns: minmax(350px, 1fr) minmax(350px, 1fr);
    gap: 60px;
    align-items: start;
}

.account-info-column h3,
.api-keys-column h3 {
    font-size: 20px;
    margin: 0 0 24px 0;
    font-weight: 400;
    color: #555;
}

.plan-details-heading {
    font-size: 20px;
    margin-top: 100px;
    margin-bottom: 24px;
    margin-left: 0;
    margin-right: 0;
    font-weight: 400;
    color: #555;
}

.account-info-table {
    width: 100%;
    border-collapse: collapse;
}

.account-info-column > .account-info-table:first-of-type {
    margin-bottom: 100px;
}

.account-info-table td {
    padding: 16px 0;
    font-size: 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.account-info-table td:first-child {
    width: 140px;
    padding-right: 24px;
    font-weight: 400;
}

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

.account-info-table td:last-child {
    vertical-align: middle;
}

.account-info-table td:last-child .upgrade-btn {
    margin-left: 12px;
}

.upgrade-btn {
    padding: 6px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    vertical-align: middle;
}

.upgrade-btn:hover {
    background-color: #0056b3;
}

.api-keys-column {
    display: flex;
    flex-direction: column;
}

.generate-key-btn {
    padding: 12px 16px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
    font-size: 14px;
    transition: background-color 0.2s ease;
    width: auto;
    min-width: 200px;
    white-space: nowrap;
}

.generate-key-btn:hover {
    background-color: #218838;
}

.api-keys-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 0 0;
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
}

.api-keys-table th,
.api-keys-table td {
    padding: 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.api-keys-table th {
    background: #f8f8f8;
    font-weight: 400;
    color: #666;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.api-keys-table th:first-child,
.api-keys-table td:first-child {
    width: 25%;
}

.api-keys-table th:nth-child(2),
.api-keys-table td:nth-child(2) {
    width: auto;
    min-width: 150px;
    white-space: nowrap;
}

.api-keys-table tbody tr {
    background: #fff;
    transition: background-color 0.2s ease;
}

.api-keys-table tbody tr:hover {
    background: #f8f8f8;
}

.api-keys-table tbody tr:last-child td {
    border-bottom: none;
}

.api-key-code {
    font-family: 'Inter', monospace;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.api-keys-table td:nth-child(3) {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.api-keys-table th:nth-child(3) {
    text-align: right;
}

.api-keys-table td:nth-child(3) {
    text-align: right;
    justify-content: flex-end;
}

.copy-btn {
    padding: 6px 14px;
    font-size: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.copy-btn:hover {
    background: #0056b3;
}

.revoke-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    transition: background-color 0.2s ease;
}

.revoke-btn:hover {
    background-color: #c82333;
}

.no-keys {
    color: #999;
    font-style: italic;
    font-size: 14px;
}

tr.htmx-swapping {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .account-info-column > .account-info-table:first-of-type {
        margin-bottom: 40px;
    }

    .plan-details-heading {
        margin-top: 40px;
    }
}

/* ===== CHECKOUT PAGE ===== */
.checkout-container {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.checkout-container section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.product svg {
    flex-shrink: 0;
}

.product .description {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product .description h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.product .description h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    color: #666;
}

.checkout-container form {
    display: flex;
    justify-content: center;
}

.checkout-btn {
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #0056b3;
}

.checkout-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* ===== PASSWORD SETUP PAGE ===== */
.password-setup {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
}

.setup-header {
    text-align: center;
    margin-bottom: 32px;
}

.setup-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #2196f3;
    color: white;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: setupPop 0.6s ease-out;
}

@keyframes setupPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.setup-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.setup-subtitle {
    color: #555;
    font-size: 16px;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.password-requirements {
    text-align: left;
    color: #555;
    font-size: 14px;
    margin: 16px 0;
    padding-left: 20px;
}

.password-requirements li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.error-message {
    background: #ffebee;
    border: 1px solid #f8bbd9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-icon {
    font-size: 20px;
    color: #e91e63;
}

.error-text {
    color: #c62828;
    font-size: 14px;
    line-height: 1.4;
}

.setup-form-container {
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}

.password-setup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group input:valid {
    border-color: #4caf50;
}

.button-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
}

.password-setup-form button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.password-setup-form button[type="submit"]:hover:not(:disabled) {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.htmx-indicator.spinner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.setup-info {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 12px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-content {
    flex: 1;
}

.info-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.help-section {
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.help-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.help-links a {
    font-size: 14px;
    color: #2196f3;
    text-decoration: none;
    font-weight: 500;
}

.help-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .password-setup {
        padding: 30px 15px;
    }

    .setup-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .setup-header h2 {
        font-size: 20px;
    }

    .setup-form-container {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .help-links {
        flex-direction: column;
        gap: 8px;
    }

    .button-container {
        flex-direction: column;
        gap: 12px;
    }

    .password-setup-form button[type="submit"] {
        width: 100%;
    }
}

/* ===== PAYMENT SUCCESS PAGE ===== */
.payment-success {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Inter', sans-serif;
    background: #ffffff;
}

.success-header {
    text-align: center;
    margin-bottom: 32px;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: #4CAF50;
    color: white;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: successPop 0.6s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-header h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 600;
}

.success-subtitle {
    color: #555;
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.trial-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    border-left: 4px solid #2196f3;
}

.trial-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.trial-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.trial-start,
.trial-end {
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

.date-label {
    display: block;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.date-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.trial-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    color: #856404;
    text-align: center;
}

.order-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.order-summary h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.plan-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.plan-info {
    flex: 1;
}

.plan-name {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.plan-pricing {
    text-align: right;
}

.price-trial {
    font-size: 14px;
    color: #4CAF50;
    font-weight: 500;
    margin-bottom: 4px;
}

.price-regular {
    font-size: 13px;
    color: #888;
}

.payment-details {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.payment-details h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.detail-label {
    font-size: 12px;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
}

.detail-value {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    word-break: break-all;
}

.next-steps {
    margin-bottom: 24px;
}

.next-steps h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 16px;
    font-weight: 600;
}

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

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.step-info {
    flex: 1;
}

.step-title {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.step-action {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
}

.step-action:hover {
    color: #0056b3;
    text-decoration: underline;
}

.actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-secondary:hover {
    background-color: #545b62;
}

.help-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.help-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
}

.help-links {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.help-links a {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.help-links a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .payment-success {
        padding: 30px 15px;
    }

    .success-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .success-header h2 {
        font-size: 20px;
    }

    .trial-dates,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plan-details {
        flex-direction: column;
        gap: 12px;
    }

    .plan-pricing {
        text-align: left;
    }

    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .actions {
        flex-direction: column;
    }

    .help-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== HOW IT WORKS PAGE ===== */
.how-it-works {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 60px;
}

.how-it-works-header h1 {
    font-size: 48px;
    color: #333;
    margin-bottom: 16px;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto 80px;
}

.step-card {
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    border: 2px solid transparent;
}

.step-card.optional {
    border-color: #06923E;
}

.optional-badge {
    position: absolute;
    top: 30px;
    right: 30px;
    background: #06923E;
    color: white;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
}

.step-card h3 {
    font-size: 24px;
    color: #333;
    margin: 0 0 16px 0;
}

.step-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.step-link {
    display: inline-block;
    color: #0046FF;
    text-decoration: none;
    font-weight: 600;
}

.code-examples {
    margin-bottom: 60px;
}

.code-examples h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.code-example {
    background: #f8f9fa;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
}

.code-header {
    background: #343a40;
    padding: 12px 20px;
}

.code-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.code-example pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-example code {
    font-family: 'Inter', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.cta-section {
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    font-size: 36px;
    color: #333;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.cta-button.primary {
    background: #0046FF;
    color: white;
}

.cta-button.secondary {
    background: white;
    color: #0046FF;
    border: 2px solid #0046FF;
}

@media screen and (max-width: 768px) {
    .how-it-works-header h1 {
        font-size: 36px;
    }

    .code-examples h2 {
        font-size: 28px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== PRIVACY POLICY PAGE ===== */
.privacy-policy {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.privacy-policy h1 {
    font-size: 48px;
    font-weight: 600;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.2;
}

.privacy-section {
    margin-bottom: 40px;
}

.privacy-section h2 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
}

.privacy-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-top: 24px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.privacy-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 16px;
}

.privacy-section ul,
.privacy-section ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.privacy-section li {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 10px;
}

.privacy-section a {
    color: #007bff;
    text-decoration: none;
}

.privacy-section a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .privacy-policy {
        padding: 15px 0;
    }

    .privacy-policy h1 {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .privacy-section {
        margin-bottom: 30px;
    }

    .privacy-section h2 {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .privacy-section h3 {
        font-size: 20px;
        margin-top: 20px;
        margin-bottom: 12px;
    }

    .privacy-section p {
        font-size: 15px;
        margin-bottom: 14px;
    }

    .privacy-section li {
        font-size: 15px;
        margin-bottom: 8px;
    }
}

/* ===== ERROR PAGE ===== */
.error-container {
    text-align: center;
    max-width: 500px;
    padding: 40px 20px;
}

.error-icon {
    font-size: 60px;
    margin-bottom: 20px;
    display: inline-block;
}

.error-title {
    color: #333;
    font-size: 24px;
    margin-bottom: 16px;
    font-weight: 600;
}

.error-message {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.error-code {
    color: #999;
    font-size: 14px;
    font-family: 'Inter', monospace;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .error-container {
        padding: 30px 15px;
    }

    .error-icon {
        font-size: 48px;
    }

    .error-title {
        font-size: 20px;
    }

    .error-message {
        font-size: 14px;
    }

    .error-actions {
        flex-direction: column;
        align-items: center;
    }

    .error-actions .auth-button {
        width: 100%;
        max-width: 200px;
    }
}
