/* Base styles */
:root {
    --color-green: #34c759;
    --color-dark-blue: #1a3760;
    --color-gray: #b4b4b4;
    --color-yellow: #f2ae00;
    --color-light: #f7f9fc;
    --color-white: #ffffff;
    --color-body: #f4f7fb;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --shadow-soft: 0 20px 40px rgba(26, 55, 96, 0.12);
    --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.08);
    --transition-base: all 0.3s ease;
    font-size: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Roboto', Arial, sans-serif;
    color: var(--color-dark-blue);
    background-color: var(--color-body);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
    color: var(--color-green);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

/* Dashboard main body padding */
.dashboard-main-body {
    padding-left: 3rem;
    padding-right: 3rem;
}

/* Responsive padding for smaller screens */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .footer-container {
        padding: 0 2rem 2.5rem;
    }
    
    .dashboard-main-body {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .footer-container {
        padding: 0 1rem 2.5rem;
    }
    
    .dashboard-main-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    border-radius: 999px;
    padding: 0.75rem 1.8rem;
    border: 2px solid transparent;
    transition: var(--transition-base);
    cursor: pointer;
    text-transform: capitalize;
}

.btn-primary {
    background-color: var(--color-green);
    color: var(--color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background-color: #2ca84d;
}

.hero-cta {
    background-color: var(--color-white);
    color: var(--color-green);
    border: none;
    border-radius: 8px;
}

.hero-cta:hover,
.hero-cta:focus-visible {
    background-color: var(--color-white);
    color: var(--color-green);
    border: none;
    box-shadow: none;
}

.btn-outline {
    border-color: var(--color-green);
    color: var(--color-green);
    background-color: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: rgba(52, 199, 89, 0.1);
}

.btn-yellow {
    background-color: var(--color-yellow);
    color: var(--color-dark-blue);
    border-color: var(--color-yellow);
}

.btn-yellow:hover,
.btn-yellow:focus-visible {
    background-color: #dd9d00;
    border-color: #dd9d00;
}

.btn-secondary {
    background-color: var(--color-yellow);
    color: var(--color-dark-blue);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background-color: #dd9d00;
}

.btn-block {
    width: 100%;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-white);
    box-shadow: 0 8px 20px rgba(26, 55, 96, 0.08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 2rem;
    position: relative;
}

.brand {
    flex-shrink: 0;
}

.brand img {
    width: 180px;
}

.primary-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    margin: 0 2rem;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-nav a {
    font-weight: 500;
    color: var(--color-dark-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.primary-nav a:hover {
    color: var(--color-green);
}

.primary-nav a.active {
    color: var(--color-green);
}

.auth-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.primary-nav .auth-actions-mobile {
    display: none;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: var(--transition-base);
}

.auth-link-outline {
    border-color: rgba(26, 55, 96, 0.25);
    color: var(--color-dark-blue);
    background-color: rgba(255, 255, 255, 0.65);
}

.auth-link-outline:hover,
.auth-link-outline:focus-visible {
    border-color: var(--color-green);
    color: var(--color-green);
    background-color: rgb(255, 255, 255);
    /* box-shadow: 0 12px 24px rgba(52, 199, 89, 0.16); */
}

.auth-link-filled {
    background-color: var(--color-green);
    color: var(--color-white);
    box-shadow: none;
}

.auth-link-filled:hover,
.auth-link-filled:focus-visible {
    background-color: var(--color-white);
    color: var(--color-green);
    border-color: var(--color-green);
    box-shadow: none;
}

.user-profile-dropdown {
    position: relative;
    flex-shrink: 0;
}

.user-profile-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 2px solid var(--color-green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.user-profile-avatar i {
    font-size: 1.5rem;
    color: var(--color-dark-blue);
    line-height: 1;
}

.user-profile-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.user-profile-toggle:hover .user-profile-avatar {
    border-color: var(--color-green);
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.2);
}

.user-profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 0.5rem 0;
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.user-profile-menu[style*="display: block"] {
    display: block;
}

.user-profile-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--color-dark-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    box-sizing: border-box;
    margin: 0;
}

.user-profile-menu-item:hover {
    background-color: #f3f4f6;
}

.user-profile-menu-item-logout:hover {
    color: #dc3545;
}

.user-profile-menu-item-logout:hover span {
    color: #dc3545;
}

.user-profile-menu-item:hover {
    color: var(--color-dark-blue);
}

.user-profile-menu-item i {
    font-size: 1.1rem;
    color: var(--color-gray);
    transition: color 0.2s ease;
}

.user-profile-menu-item span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-profile-menu-item span i:first-child {
    font-size: 1.1rem;
    color: var(--color-gray);
    transition: color 0.2s ease;
}

/* Edit Profile icon hover - more specific selectors */
a.user-profile-menu-item:hover span i:first-child,
a.user-profile-menu-item:hover span .ri-user-settings-line,
.user-profile-menu-item:not(.user-profile-menu-item-logout):hover span i:first-child {
    color: var(--color-dark-blue) !important;
}

/* Logout icon hover */
button.user-profile-menu-item-logout:hover span i:first-child,
.user-profile-menu-item-logout:hover span .ri-logout-box-line,
.user-profile-menu-item.user-profile-menu-item-logout:hover span i:first-child {
    color: #dc3545 !important;
}

/* Keep arrow icon color unchanged on hover - arrow is outside span */
.user-profile-menu-item > i.ri-arrow-right-s-line,
.user-profile-menu-item:hover > i.ri-arrow-right-s-line {
    color: var(--color-gray) !important;
}

.user-profile-menu-item-logout > i.ri-arrow-right-s-line,
.user-profile-menu-item-logout:hover > i.ri-arrow-right-s-line {
    color: var(--color-gray) !important;
}

.user-profile-menu form {
    margin: 0;
    padding: 0;
    width: 100%;
}

.user-profile-menu form button {
    width: 100%;
}

.nav-toggle {
    background: none;
    border: 0;
    display: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--color-dark-blue);
    border-radius: 999px;
    transition: var(--transition-base);
}

/* Hero */
.hero {
    background-color: var(--color-body);
    padding: clamp(3.25rem, 6.5vw, 2.75rem) 0 clamp(5.75rem, 9vw, 2.75rem);
    position: relative;
    isolation: isolate;
}

.anchor-offset {
    display: block;
    position: absolute;
    top: -90px;
}

.hero-inner {
    width: 100%;
    max-width: 1660px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.hero-banner {
    background-color: var(--color-white);
    background-image: url('../Mobile_Number_Prediction_Website_images/BG.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(2.75rem, 6vw, 3.5rem);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    width: 100%;
    /* max-width: 960px; */
    margin: 0 auto;
}

.hero-banner .btn {
    min-width: 160px;
}

.hero-heading {
    font-size: clamp(2.4rem, 5vw, 3.1rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.03em;
    margin-bottom: 0.85rem;
    color: var(--color-white);
    text-align: center;
    text-transform: uppercase;
}

.hero-heading span {
    display: block;
    margin-top: 0.35rem;
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    color: var(--color-white);
}

.hero-copy p {
    font-size: 1.4rem;
    margin: 0;
    color: var(--color-white);
    opacity: 0.9;
    /* text-transform: uppercase; */
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.hero-cta {
    padding: 0.9rem 2.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: none;
}

.hero-form-wrapper {
    margin-top: clamp(-4.25rem, -7vw, -5.25rem);
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 5;
    width: 100%;
}

.hero-form-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.6rem 3.1rem;
    width: min(94%, 1040px);
}

.prediction-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark-blue);
    margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(26, 55, 96, 0.5);
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0;
    font-weight: 400;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}

.form-field textarea {
    resize: vertical;
}

/* Password Input Wrapper with Eye Icon */
.password-input-wrapper {
    position: relative;
    width: 100%;
}

.password-input-wrapper input {
    padding-right: 3rem;
}

.password-toggle-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(26, 55, 96, 0.5);
    transition: color 0.2s ease;
    z-index: 1;
}

.password-toggle-btn:hover {
    color: var(--color-dark-blue);
}

.password-toggle-btn:focus {
    outline: none;
    color: var(--color-green);
}

.password-eye-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.form-field-wide {
    grid-column: 1 / -1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 24, 46, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1300;
    overflow-y: auto;
    overflow-x: hidden;
}

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

.modal-backdrop {
    position: absolute;
    inset: 0;
}

.modal-dialog {
    position: relative;
    max-width: 520px;
    width: 100%;
    z-index: 1;
    max-height: 90vh;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.modal-dialog-lg {
    max-width: 720px;
    max-height: 90vh;
}

.modal-content {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2.25rem 2.5rem;
    display: flex;
    position: relative;
    flex-direction: column;
    gap: 1.25rem;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    border: none;
    background: transparent;
    font-size: 1.75rem;
    line-height: 1;
    color: rgba(26, 55, 96, 0.4);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
    color: rgba(26, 55, 96, 0.75);
}

.modal-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-dark-blue);
}

.modal-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-logo .brand {
    display: inline-block;
}

.modal-logo .brand img {
    height: auto;
    max-width: 200px;
}

.modal-alert {
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.modal-alert-success {
    background-color: rgba(52, 199, 89, 0.12);
    color: var(--color-green);
}

.modal-alert-info {
    background-color: rgba(33, 150, 243, 0.12);
    color: #1565c0;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-input-with-prefix {
    display: flex;
    align-items: stretch;
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.95);
    min-height: 52px;
    height: 52px;
}

.form-input-with-prefix:focus-within {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}

.form-input-prefix {
    display: none;
    align-items: center;
    padding: 0 0.75rem;
    background-color: rgba(26, 55, 96, 0.08);
    color: var(--color-dark-blue);
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 1px solid rgba(26, 55, 96, 0.12);
}

.form-input-prefix.is-visible {
    display: inline-flex;
}

.form-input-with-prefix input {
    flex: 1;
    border: 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    background: transparent;
    outline: none;
}

.form-input-with-prefix input::placeholder {
    color: rgba(26, 55, 96, 0.4);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(26, 55, 96, 0.8);
}

.form-checkbox input {
    accent-color: var(--color-green);
}

.form-hint {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: rgba(26, 55, 96, 0.55);
}

.form-error,
.text-danger-600 {
    display: none !important; /* Hide inline errors, show via SweetAlert2 */
    margin-top: 0.4rem;
    font-size: 0.82rem;
    color: #d14343;
}

/* Show form errors in password form */
#password-form .form-error {
    display: block !important;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.form-link {
    color: var(--color-yellow);
    font-weight: 600;
    text-decoration: none;
}

.form-link:hover,
.form-link:focus-visible {
    text-decoration: underline;
}

.modal-footer-text {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(26, 55, 96, 0.75);
}

.modal-footer-text .form-link {
    color: #2563eb;
}

.modal-footer-text .form-link:hover,
.modal-footer-text .form-link:focus-visible {
    color: #1d4ed8;
    text-decoration: underline;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .modal-overlay {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .modal-dialog {
        max-height: 95vh;
        margin: 0;
    }

    .modal-dialog-lg {
        max-width: 100%;
        max-height: 95vh;
    }

    .modal-content {
        max-height: 95vh;
        padding: 1.5rem 1.25rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-form .form-grid {
        grid-template-columns: 1fr;
    }
}

/* About */
.about {
    position: relative;
    padding: clamp(4.6rem, 8.5vw, 6.6rem) 0;
    background-color: #ffffff;
    overflow: hidden;
    width: 100%;
}

.about .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

.about::before {
    content: '';
    position: absolute;
    top: -8%;
    right: -12%;
    width: 760px;
    height: 760px;
    background: url('../Mobile_Number_Prediction_Website_images/Frame 1.png') no-repeat center/contain;
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-heading span {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-dark-blue);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-heading span::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 110%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-green) 0%, rgba(33, 206, 153, 0.4) 100%);
    transform: translateX(-50%);
}

.section-title {
    font-size: clamp(2.1rem, 4vw, 2.8rem);
    line-height: 1.2;
    text-align: center;
    margin: 0 0 2rem;
    color: var(--color-dark-blue);
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-green);
    margin-bottom: 0.75rem;
}

.about-copy h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.about-copy h2 span {
    color: var(--color-green);
}

.about-copy p {
    margin-bottom: 2rem;
    color: rgba(26, 55, 96, 0.7);
    max-width: 560px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
}

.stat-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--color-white);
    box-shadow: 0 25px 50px rgba(26, 55, 96, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 60px rgba(26, 55, 96, 0.12);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.stat-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.stat-card:nth-child(1) .stat-icon {
    background-color: #F87899;
}

.stat-card:nth-child(2) .stat-icon {
    background-color: #547EBE;
}

.stat-card:nth-child(3) .stat-icon {
    background-color: #EFB317;
}

.stat-card:nth-child(4) .stat-icon {
    background-color: #45C966;
}
.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.05;
}

.stat-label {
    margin: 0;
    line-height: 1.1;
    color: rgba(26, 55, 96, 0.65);
    font-weight: 500;
}

.about-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 440px;
    padding-right: 2rem;
}

.about-image {
    position: absolute;
    height: auto;
}

.about-backdrop {
    max-width: 480px;
    /* opacity: 0.25; */
    transform: translate(40px, 30px) scale(1.15);
    filter: grayscale(100%);
    z-index: 1;
    animation: float-backdrop 10s ease-in-out infinite;
}

.about-phone {
    /* max-width: 380px; */
    z-index: 2;
    transform: translate(-15px, -25px) rotate(-6deg);
    animation: float-phone 8s ease-in-out infinite;
}

.about-media::after {
    /* content: ''; */
    position: absolute;
    inset: auto 25% -18% 25%;
    height: 120px;
    border-radius: 120px;
    background: linear-gradient(135deg, rgba(26, 55, 96, 0.22), rgba(26, 55, 96, 0));
    filter: blur(10px);
    z-index: 1;
}

@keyframes float-backdrop {
    0%, 100% {
        transform: translate(40px, 30px) scale(1.15);
    }
    50% {
        transform: translate(40px, 50px) scale(1.12);
    }
}

@keyframes float-phone {
    0%, 100% {
        transform: translate(-15px, -25px) rotate(-6deg);
    }
    50% {
        transform: translate(-15px, -45px) rotate(-4deg);
    }
}

/* Pricing */
.pricing {
    padding: clamp(4.6rem, 8.5vw, 6.6rem) 0;
    background-color: #F8F8F8;
    width: 100%;
}

.pricing-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background-color: #F8F8F8;
    width: 100%;
}

.pricing-section .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.choose-plan-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-dark-blue);
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
}

.pricing-card {
    background-color: var(--color-white);
    padding: 2.75rem 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-width: 0;
}

/* .pricing-card.featured {
    border: 2px solid rgba(242, 174, 0, 0.35);
    transform: translateY(-28px) scale(1.05);
    padding: 3.75rem 2.75rem 4.75rem;
    box-shadow: 0 25px 60px rgba(242, 174, 0, 0.25);
} */

.plan-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-radius: 999px;
    padding: 0.35rem 1.5rem;
    color: var(--color-green);
    background-color: rgba(52, 199, 89, 0.16);
}

.plan-badge-basic {
    color: var(--color-green);
    background-color: rgba(52, 199, 89, 0.16);
}

.plan-badge-pro {
    color: var(--color-green);
    background-color: rgba(52, 199, 89, 0.16);
}

.plan-badge-expert {
    color: var(--color-green);
    background-color: rgba(52, 199, 89, 0.16);
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-dark-blue);
}

.plan-price .currency {
    font-size: 2rem;
    vertical-align: top;
}

.plan-price .plan-unit {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 0.35rem;
    letter-spacing: 0.08em;
}

.plan-subtitle {
    margin: 0;
    color: rgba(26, 55, 96, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.plan-subtitle span {
    display: inline-block;
    font-size: 0.85rem;
}

.btn-upgrade {
    margin-top: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.pricing-card .btn-upgrade {
    align-self: center;
    min-width: 210px;
}

.btn-upgrade:hover,
.btn-upgrade:focus-visible {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    border-color: var(--color-yellow);
}

.card-note {
    font-size: 0.85rem;
    color: rgba(26, 55, 96, 0.55);
    margin-bottom: 0.5rem;
}

.plan-heading {
    font-size: 1.15rem;
    margin: 0;
    color: var(--color-dark-blue);
    text-align: left;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: grid;
    gap: 0.75rem;
}

.plan-features li {
    position: relative;
    padding-left: 1.75rem;
    font-weight: 500;
    color: rgba(26, 55, 96, 0.75);
}

.plan-features li::before {
    content: '\203A';
    position: absolute;
    top: 0.1rem;
    left: 0;
    color: var(--color-dark-blue);
    font-size: 0.85rem;
}

/* FAQs */
.faqs {
    padding: clamp(4.6rem, 8.5vw, 6.6rem) 0;
    background-color: #ffffff;
    width: 100%;
}

.faqs-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background-color: #ffffff;
    width: 100%;
}

.faqs-section .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

.faqs-section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-dark-blue);
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.faqs-inner {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    align-items: center;
}

.faqs-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.faqs-media img {
    max-width: 100%;
    height: auto;
}

.faq-list {
    display: grid;
    gap: 1.25rem;
}

.faq-item {
    background-color: rgba(26, 55, 96, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.faq-item.is-open {
    background-color: var(--color-white);
}

.faq-question {
    width: 100%;
    background-color: rgba(26, 55, 96, 0.05);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(26, 55, 96, 0.7);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-question {
    background-color: var(--color-green);
    color: var(--color-white);
}

.faq-question:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: -3px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green);
    transition: transform 0.3s ease, color 0.2s ease;
    line-height: 1;
}

.faq-item.is-open .faq-icon {
    color: var(--color-white);
    transform: none;
}

.faq-answer {
    padding: 1.5rem 1.75rem;
    color: rgba(26, 55, 96, 0.7);
    line-height: 1.6;
    background-color: #F8F8F8;
}

.faq-answer p {
    margin: 0;
}

.faq-answer[hidden] {
    display: none;
}

/* Contact */
.contact {
    padding: clamp(4.6rem, 8.5vw, 6.6rem) 0;
    background-color: #F8F8F8;
    width: 100%;
}

.contact-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background-color: #F8F8F8;
    width: 100%;
}

.contact-section .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.contact-info {
    background-color: var(--color-yellow);
    color: var(--color-dark-blue);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-info-card {
    background-color: var(--color-yellow);
    color: var(--color-dark-blue);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info-card p {
    margin: 0;
    line-height: 1.6;
    color: var(--color-dark-blue);
}

.contact-info-card .btn {
    background-color: var(--color-white);
    color: var(--color-green);
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    display: inline-block;
    align-self: flex-start;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.contact-info-card .btn:hover,
.contact-info-card .btn:focus-visible {
    background-color: var(--color-white);
    color: var(--color-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-info h3 {
    font-size: 2rem;
    margin-top: 0;
}

.contact-info .btn {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    margin: 1rem 0;
    font-weight: 600;
}

.contact-info .btn:hover,
.contact-info .btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--color-dark-blue);
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-details strong {
    font-weight: 600;
    color: var(--color-dark-blue);
}

.contact-details a {
    font-weight: 500;
    color: var(--color-dark-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-details a:hover {
    color: var(--color-green);
}

.contact-response {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(26, 55, 96, 0.75);
    line-height: 1.6;
}

.contact-note {
    font-size: 0.85rem;
    color: rgba(26, 55, 96, 0.75);
}

.contact-form-card {
    background-color: var(--color-white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.contact-form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding-top: 3.75rem;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
    padding: 0 3rem 2.5rem;
}

.footer-logo img {
    width: 160px;
}

.footer-brand p {
    margin: 1rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    transition: var(--transition-base);
    text-decoration: none;
    font-size: 1.35rem;
}

.social-links a:hover,
.social-links a:focus-visible {
    background-color: var(--color-yellow);
    color: var(--color-dark-blue);
}

.footer-links h4,
.footer-contact h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--color-green);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact li i {
    font-size: 1.1rem;
    color: var(--color-white);
    flex-shrink: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: var(--color-green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: min(1660px, 100%);
    margin: 0 auto;
    
    width: 100%;
}

.footer-bottom p {
    margin: 0;
    flex: 0 0 auto;
}

.footer-bottom p:first-child {
    text-align: left;
}

.footer-credit {
    text-align: right;
    margin-left: auto;
    flex: 0 0 auto;
}

.footer-credit strong {
    color: var(--color-white);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 1024px) {
    .primary-nav ul {
        gap: 1rem;
    }

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

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-form-wrapper {
        margin-top: -4rem;
    }

    .about-grid,
    .faqs-inner,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner,
    .hero-copy,
    .about-copy,
    .faqs-content {
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faqs-media {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .primary-nav {
        position: absolute;
        inset: calc(100% + 10px) 0 auto 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow-soft);
        border-radius: var(--radius-md);
        margin: 0 1.5rem;
        padding: 1rem 1.5rem;
        transform-origin: top center;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .primary-nav.is-active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
    }

    .primary-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    .primary-nav ul li {
        width: 100%;
        text-align: left;
    }

    .primary-nav ul li a {
        display: block;
        width: 100%;
        text-align: left;
        padding: 0.5rem 0;
    }

    .auth-actions {
        display: none;
    }

    .primary-nav .auth-actions-mobile {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(26, 55, 96, 0.1);
    }

    .primary-nav .auth-actions-mobile .auth-link {
        width: 100%;
        justify-content: center;
        display: flex;
        text-align: center;
    }

    .primary-nav ul li.auth-actions-mobile-item {
        list-style: none;
        padding: 0;
        margin-top: 0.5rem;
        width: 100%;
    }

    .about-backdrop {
        max-width: 286px;
    }

    .prediction-hero-banner {
        min-height: 0px !important;
        padding: 2rem 1.5rem;
    }

    .prediction-hero-banner.history-banner,
    .prediction-hero-banner.tokens-banner,
    .prediction-hero-banner.personalised-number-banner,
    .prediction-hero-banner.about-banner,
    .prediction-hero-banner.contact-banner,
    .prediction-hero-banner.pricing-banner,
    .prediction-hero-banner.faqs-banner,
    .prediction-hero-banner.privacy-banner,
    .prediction-hero-banner.terms-banner,
    .prediction-hero-banner.edit-profile-banner {
        min-height: 0px !important;
        padding: 2rem 1.5rem;
    }

    .prediction-hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .prediction-hero-subtitle {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    /* Hide hero banner only on prediction create page */
    .prediction-hero.prediction-create-hero {
        display: none;
    }

    .prediction-hero .container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .prediction-hero-banner.history-banner,
    .prediction-hero-banner.tokens-banner,
    .prediction-hero-banner.personalised-number-banner,
    .prediction-hero-banner.about-banner,
    .prediction-hero-banner.contact-banner,
    .prediction-hero-banner.pricing-banner,
    .prediction-hero-banner.faqs-banner,
    .prediction-hero-banner.privacy-banner,
    .prediction-hero-banner.terms-banner,
    .prediction-hero-banner.edit-profile-banner {
        margin-top: 0;
        margin-bottom: 0;
        padding: 1rem 1rem;
        min-height: 0px !important;
    }

    .hero {
        padding: 3rem 0 5rem;
    }

    .hero-form-wrapper {
        margin-top: -3.25rem;
    }

    .hero-form-card {
        padding: 2.25rem 2rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero-form-wrapper {
        margin-top: -2rem;
    }

    .hero-form-card,
    .contact-form-card,
    .contact-info {
        padding: 2rem 1.5rem;
    }

    .prediction-form .form-grid,
    .contact-form .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-credit {
        text-align: center;
        margin-left: 0;
        margin-top: 0.5rem;
    }
}

/* Prediction Page Styles */
.prediction-hero {
    background-color: var(--color-body);
    padding: clamp(4rem, 6vw, 3rem) 0;
    position: relative;
    isolation: isolate;
}

.prediction-hero .container {
    width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prediction-hero-banner {
    background-color: var(--color-yellow);
    background-image: url('../Mobile_Number_Prediction_Website_images/BG.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: clamp(4rem, 10vw, 6rem) clamp(2.75rem, 6vw, 3.5rem);
    padding-bottom: clamp(5rem, 12vw, 7.5rem);
    max-width: 1660px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    }

.prediction-hero-banner.history-banner {
    background-color: var(--color-dark-blue);
    background-image: url('../Mobile_Number_Prediction_Website_images/My_Prediction.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: clamp(4rem, 10vw, 6rem) clamp(2.75rem, 6vw, 3.5rem);
    max-width: 1660px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prediction-hero-banner.tokens-banner {
    background-color: var(--color-dark-blue);
    background-image: url('../Mobile_Number_Prediction_Website_images/My_Prediction.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: clamp(4rem, 10vw, 6rem) clamp(2.75rem, 6vw, 3.5rem);
    max-width: 1660px;
    width: 100%;
    margin: 0 auto;
    gap: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prediction-hero-banner.personalised-number-banner {
    background-color: var(--color-dark-blue);
    background-image: url('../Mobile_Number_Prediction_Website_images/My_Prediction.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: clamp(4rem, 10vw, 6rem) clamp(2.75rem, 6vw, 3.5rem);
    max-width: 1660px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prediction-hero-banner.about-banner,
.prediction-hero-banner.contact-banner,
.prediction-hero-banner.pricing-banner,
.prediction-hero-banner.faqs-banner,
.prediction-hero-banner.privacy-banner,
.prediction-hero-banner.terms-banner,
.prediction-hero-banner.edit-profile-banner {
    background-color: var(--color-dark-blue);
    background-image: url('../Mobile_Number_Prediction_Website_images/My_Prediction.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: clamp(4rem, 10vw, 6rem) clamp(2.75rem, 6vw, 3.5rem);
    max-width: 1660px;
    width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.prediction-hero-content {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.prediction-hero-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
    width: 100%;
}

.prediction-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-white);
    margin: 0;
    opacity: 0.95;
    line-height: 1.4;
}

.prediction-form-section {
    padding: 0;
    padding-bottom: clamp(3.25rem, 6.5vw, 4.75rem);
    /* background-color: var(--color-white); */
    margin-top: clamp(-180px, -12vw, -10rem); /* Overlap banner for prediction/create */
    position: relative;
    z-index: 5;
}

/* Profile edit page - no overlap */
.prediction-form-section.profile-form-section {
    margin-top: 0;
}

.prediction-form-section.personalised-number-form-section {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding-top: 0;
    background-color: var(--color-white);
}

.prediction-form-section.personalised-number-form-section .prediction-form-card {
    max-width: 100%;
    width: 100%;
}

.prediction-form-section .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

/* Position form card to start at half of banner height */
.prediction-hero-banner::after {
    content: '';
    display: block;
    height: 50%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
}

.prediction-form-card {
    background-color: var(--color-white);
    margin-top: 0;
    border-radius: var(--radius-lg);
    box-shadow: 0;
    padding: 2.6rem 3.1rem;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    width: 100%;
}

/* Prediction create page - card max-width */
.prediction-form-section:not(.profile-form-section) .prediction-form-card {
    max-width: 700px;
}

.contact-form-card {
    position: relative;
}

/* Prediction Loader Overlay */
.prediction-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.prediction-loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.prediction-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(52, 199, 89, 0.2);
    border-top-color: var(--color-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.prediction-loader-text {
    color: var(--color-dark-blue);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Form Loader Overlay (for modals and forms) */
.form-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
    /* Ensure loader is contained within parent */
    overflow: hidden;
}

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

.form-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(52, 199, 89, 0.2);
    border-top-color: var(--color-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.form-loader-text {
    color: var(--color-dark-blue);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Success Modal */
.success-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    backdrop-filter: blur(5px);
}

.success-modal-content {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    pointer-events: auto;
    z-index: 10001;
}

.success-modal-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.1), rgba(52, 199, 89, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-modal-icon i {
    font-size: 3rem;
    color: var(--color-green);
}

.success-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.success-modal-message {
    font-size: 1rem;
    color: rgba(26, 55, 96, 0.7);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-modal-btn {
    min-width: 120px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10001;
}

/* Ensure SweetAlert2 modals appear above register/login modals */
.swal2-container {
    z-index: 10000 !important;
}
.swal2-container.swal2-backdrop-show {
    z-index: 10000 !important;
}
.swal2-popup {
    z-index: 10001 !important;
}

/* Custom SweetAlert2 Success Modal Design */
.custom-success-modal {
    border-radius: 12px !important;
    padding: 3rem 2.5rem !important;
    max-width: 500px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
}

.custom-success-modal .swal2-title {
    display: none !important;
}

.custom-success-modal .swal2-content {
    padding: 0 !important;
    margin: 0 !important;
}

.custom-success-modal-btn {
    min-width: 200px !important;
    padding: 0.875rem 2rem !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3) !important;
    transition: all 0.3s ease !important;
}

.custom-success-modal-btn:hover {
    background-color: #2fb04a !important;
    box-shadow: 0 6px 16px rgba(52, 199, 89, 0.4) !important;
    transform: translateY(-1px) !important;
}

.prediction-form-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 2rem;
}

.personal-details-heading {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin: 2rem 0 1.5rem;
}

.form-field-wide {
    grid-column: 1 / -1;
}

/* Mobile Number Input Wrapper - Side by Side */
.mobile-number-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* border: 1px solid rgba(26, 55, 96, 0.15); */
    border-radius: 8px;
    overflow: visible;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.mobile-number-input-wrapper.mobile-number-full-width {
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
}

.mobile-number-input-wrapper:focus,
.mobile-number-input-wrapper:focus-within {
    box-shadow: none;
    outline: none;
}

.country-code-dropdown {
    flex: 0 0 200px;
    min-width: 180px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: 8px;
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a3760' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    margin: 0;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
}

.country-code-dropdown.country-code-full-width {
    flex: 0 0 25%;
    width: 25%;
    min-width: 180px;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
}

.country-code-dropdown:focus {
    outline: none;
    box-shadow: none;
    border-color: rgba(26, 55, 96, 0.3);
}

.mobile-number-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: 8px;
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    font-size: 0.95rem;
    min-width: 0;
    margin: 0;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
}

.mobile-number-input.mobile-number-full-width-input {
    flex: 1 1 75%;
    width: 75%;
    min-width: 0;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
}

.mobile-number-input:focus {
    outline: none;
    box-shadow: none;
    border-color: rgba(26, 55, 96, 0.3);
}

.mobile-number-input::placeholder {
    color: rgba(26, 55, 96, 0.5);
}

.mobile-number-hint {
    color: var(--color-green);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* Personal Details Grid - Special Layout */
.personal-details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.personal-details-grid .form-field:first-child {
    grid-column: 1;
    grid-row: 1;
}

.personal-details-grid .form-field:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.personal-details-grid .form-field:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.personal-details-grid .form-field.form-field-wide {
    grid-column: 1 / -1;
}

/* Personalised Number Form Layout */
.personalised-number-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.personalised-number-grid .country-code-dropdown {
    width: 100%;
    padding: 0.75rem 1rem;
    padding-right: 2.5rem;
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: var(--radius-sm);
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a3760' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.personalised-number-grid .country-code-dropdown:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1);
}

.form-field-full {
    grid-column: 1 / -1;
    width: 100%;
}

.personalised-number-grid .form-field-full {
    grid-column: 1 / -1;
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

/* Life Goals textarea - minimum 4 lines visual height */
.life-goals-textarea {
    height: 120px !important; /* Explicit height for 4 lines (approximately 30px per line) */
    min-height: 120px !important; /* Ensure minimum 4 lines, but allow expansion */
    line-height: 1.5;
    overflow-y: auto; /* Allow scrolling if content exceeds */
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.1);
}

.form-textarea::placeholder {
    color: rgba(26, 55, 96, 0.4);
}

/* Life Goals textarea - minimum 4 lines visual height */
.life-goals-textarea {
    height: 7.5rem; /* Explicit height for 4 lines (approximately 1.875rem per line with padding) */
    min-height: 7.5rem; /* Ensure minimum 4 lines, but allow expansion */
    line-height: 1.5;
}

.btn-submit-full {
    width: 100%;
    margin-top: 1.5rem;
}

/* Date Input with Icon */
.date-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
}

.date-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    height: 52px;
    min-height: 52px;
    box-sizing: border-box;
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    position: relative;
    cursor: pointer;
}

.date-input::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.date-input:invalid::-webkit-datetime-edit {
    color: rgba(26, 55, 96, 0.5);
}

.date-input[value=""]::-webkit-datetime-edit {
    color: rgba(26, 55, 96, 0.5);
}

.date-input[value=""]::-webkit-datetime-edit-text {
    color: rgba(26, 55, 96, 0.5);
}

.date-input[value=""]::-webkit-datetime-edit-month-field,
.date-input[value=""]::-webkit-datetime-edit-day-field,
.date-input[value=""]::-webkit-datetime-edit-year-field {
    color: rgba(26, 55, 96, 0.5);
}

/* Ensure date input text color matches other inputs when date is selected */
.date-input:valid::-webkit-datetime-edit {
    color: var(--color-dark-blue);
}

.date-input:valid::-webkit-datetime-edit-text {
    color: var(--color-dark-blue);
}

.date-input:valid::-webkit-datetime-edit-month-field,
.date-input:valid::-webkit-datetime-edit-day-field,
.date-input:valid::-webkit-datetime-edit-year-field {
    color: var(--color-dark-blue);
}

.date-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(26, 55, 96, 0.5);
    pointer-events: none;
    font-size: 1.1rem;
    z-index: 1;
}

/* Submit Button */
.btn-submit {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.9rem 2.5rem;
    margin: 1.5rem auto 0;
    display: block;
    font-size: 1rem;
    border-radius: 9px;
}

/* Token Requirement */
.token-requirement {
    color: #dc3545;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Prediction Result Banner */
.prediction-result-banner {
    background-color: var(--color-dark-blue);
    background-image: url('../Mobile_Number_Prediction_Website_images/My_Prediction.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 550px;
    padding: clamp(4rem, 10vw, 6rem) clamp(2.75rem, 6vw, 3.5rem);
}

.prediction-result-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    height: 100%;
    align-items: center;
}

.prediction-result-banner-left,
.prediction-result-banner-right {
    display: flex;
    align-items: center;
}

.prediction-result-text {
    color: var(--color-white);
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.prediction-result-banner-right .prediction-result-text {
    text-align: right;
}

/* Prediction Results Section */
.prediction-results-section-wrapper {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background-color: var(--color-white);
}

.prediction-results-section-wrapper .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

.prediction-results-section-wrapper .prediction-form-card {
    max-width: 100%;
    width: 100%;
}

.prediction-results-section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Prediction Summaries */
.prediction-summaries-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.prediction-summary-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(26, 55, 96, 0.1);
}

.prediction-summary-positive {
    background-color: rgba(52, 199, 89, 0.05);
    border-color: rgba(52, 199, 89, 0.2);
}

.prediction-summary-negative {
    background-color: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.2);
}

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

.prediction-summary-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.prediction-summary-icon.positive-icon {
    color: var(--color-green);
}

.prediction-summary-icon.negative-icon {
    color: #f59e0b;
}

.prediction-summary-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.prediction-summary-title.positive-title {
    color: var(--color-green);
}

.prediction-summary-title.negative-title {
    color: #f59e0b;
}

.prediction-summary-content {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    color: var(--color-dark-blue);
}

.prediction-summary-content.positive-content {
    color: rgba(26, 55, 96, 0.85);
}

.prediction-summary-content.negative-content {
    color: rgba(26, 55, 96, 0.85);
}

/* Prediction Details Card */
.prediction-details-card {
    background-color: var(--color-white);
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.prediction-details-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
}

.prediction-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.prediction-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prediction-detail-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 0.5rem;
}

.prediction-detail-label {
    font-size: 0.95rem;
    color: var(--color-dark-blue);
    font-weight: 600;
    flex-shrink: 0;
}

.prediction-detail-value {
    font-size: 0.95rem;
    color: rgba(26, 55, 96, 0.6);
    font-weight: 400;
    text-align: left;
}

/* Rating Section */
.rating-section {
    margin-bottom: 1.5rem;
    text-align: center;
}

.rating-section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 0.75rem;
    text-align: center;
}

.star-rating-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.star-icon {
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    color: rgba(26, 55, 96, 0.3);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-white);
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
}

.star-icon.star-filled {
    color: #fbbf24;
}

.star-icon.star-outline {
    color: rgba(26, 55, 96, 0.3);
}

.star-icon:hover,
.star-icon.star-hover {
    color: #fbbf24;
    transform: scale(1.1);
}

/* Feedback Section */
.feedback-section {
    margin-bottom: 1.5rem;
}

.feedback-section-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-bottom: 0.75rem;
}

.feedback-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(26, 55, 96, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--color-dark-blue);
    background-color: var(--color-white);
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-textarea:focus {
    outline: none;
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.15);
}

.feedback-textarea::placeholder {
    color: rgba(26, 55, 96, 0.5);
}

/* Feedback Submit Button */
.feedback-submit-btn {
    width: 100%;
    padding: 0.9rem 2rem;
    background-color: var(--color-yellow);
    /* color: var(--color-dark-blue); */
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.feedback-submit-btn:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.feedback-submit-btn:active {
    transform: translateY(0);
}

.feedback-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Check Another Mobile Button Section */
.check-another-mobile-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background-color: var(--color-white);
}

.check-another-mobile-section .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

.check-another-mobile-wrapper {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    display: flex;
    justify-content: center;
    width: 100%;
}

.check-another-mobile-btn {
    padding: 0.9rem 3rem;
    background-color: var(--color-green);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    min-width: 200px;
}

.check-another-mobile-btn:hover {
    background-color: #2ab758;
    transform: translateY(-2px);
}

.check-another-mobile-btn:active {
    transform: translateY(0);
}

/* Feedback Form */
.feedback-form {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .prediction-form-section {
        margin-top: 1rem;
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .prediction-form-card {
        padding: 1.5rem 1rem;
        margin-top: 0;
        border-radius: 12px;
    }

    .prediction-form-heading {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .personal-details-heading {
        font-size: 1.1rem;
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .mobile-number-input-wrapper.mobile-number-full-width {
        flex-direction: column;
        gap: 1rem;
    }
    
    .country-code-dropdown.country-code-full-width {
        width: 100%;
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    .mobile-number-input.mobile-number-full-width-input {
        width: 100%;
        flex: 1 1 100%;
    }

    /* Mobile responsive for country code and mobile number grid */
    .mobile-number-row {
        flex-direction: column !important;
    }
    
    .mobile-number-col-5,
    .mobile-number-col-7 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem;
    }
    
    .mobile-number-col-7 {
        margin-bottom: 0;
    }

    .prediction-form .form-grid,
    .personal-details-grid,
    .prediction-summaries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .form-field {
        margin-bottom: 1rem;
    }

    .form-field label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .form-field input,
    .form-field select {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        width: 100%;
        padding: 1rem 2rem;
        margin-top: 1.5rem;
        font-size: 1rem;
    }

    .token-requirement {
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .personal-details-grid .form-field:first-child,
    .personal-details-grid .form-field:nth-child(2),
    .personal-details-grid .form-field:nth-child(3) {
        grid-column: 1;
        grid-row: auto;
    }
}

/* History Page Styles */
.history-section {
    padding: clamp(2rem, 4vw, 3rem) 0;
    background-color: var(--color-white);
}

.history-table-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 2rem;
    max-width: min(1660px, 100%);
    margin: 0 auto;
    width: min(94%, 1660px);
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.history-table thead {
    background-color: var(--color-green);
}

.history-table thead th {
    padding: 1rem;
    text-align: left;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.history-table tbody tr {
    border-bottom: 1px solid rgba(26, 55, 96, 0.1);
    transition: background-color 0.2s ease;
}

.history-table tbody tr:hover {
    background-color: rgba(26, 55, 96, 0.02);
}

.history-table tbody td {
    padding: 1rem;
    color: var(--color-dark-blue);
    vertical-align: middle;
}

.history-table tbody td:first-child {
    font-weight: 600;
    color: var(--color-dark-blue);
}

.view-summary-btn {
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.view-summary-btn:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.view-summary-btn i {
    font-size: 1rem;
}

.feedback-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-yellow);
    font-weight: 600;
    font-size: 0.95rem;
}

.feedback-rating i {
    font-size: 1.1rem;
    color: var(--color-yellow);
}

.add-feedback-btn {
    padding: 0.5rem 1rem;
    background-color: var(--color-green);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.add-feedback-btn:hover {
    background-color: #2ab758;
    transform: translateY(-1px);
    color: var(--color-white);
}

.history-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-dark-blue);
}

.history-empty p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: rgba(26, 55, 96, 0.6);
}

/* Summary Modal Styles */
.summary-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.summary-modal-overlay.is-visible {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.summary-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.summary-modal-dialog {
    position: relative;
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    z-index: 10000;
    margin: auto;
}

.summary-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgba(26, 55, 96, 0.5);
    cursor: pointer;
    z-index: 10001;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.summary-modal-close:hover {
    background-color: rgba(26, 55, 96, 0.1);
    color: var(--color-dark-blue);
}

.summary-modal-content {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 4rem);
}

.summary-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.summary-modal-body {
    color: var(--color-dark-blue);
    line-height: 1.6;
    font-size: 1rem;
}

.summary-modal-body p {
    margin: 0;
}

@media (max-width: 768px) {
    .history-table-card {
        padding: 1rem;
    }

    .history-table {
        font-size: 0.875rem;
    }

    .history-table thead th,
    .history-table tbody td {
        padding: 0.75rem 0.5rem;
    }

    .view-summary-btn,
    .add-feedback-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .summary-modal-dialog {
        width: 95%;
        max-height: 90vh;
    }

    .summary-modal-content {
        padding: 1.5rem;
        max-height: calc(90vh - 3rem);
    }

    .summary-modal-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

/* Tokens Page Styles */
.token-balance-indicator {
    background-color: var(--color-yellow);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 12px rgba(242, 174, 0, 0.3);
}

.balance-icon {
    font-size: 1.5rem;
    color: var(--color-dark-blue);
}

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

.tokens-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background-color: var(--color-white);
}

.choose-plan-section {
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

.tokens-section .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.choose-plan-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-dark-blue);
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.plan-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(2rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.plan-label {
    background-color: rgba(52, 199, 89, 0.15);
    color: var(--color-green);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 600;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.plan-card-title {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--color-green);
    margin-bottom: 1rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-dark-blue);
    line-height: 1;
}

.price-currency {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
    color: var(--color-dark-blue);
    opacity: 0.8;
}

.plan-tokens {
    font-size: 0.95rem;
    color: var(--color-dark-blue);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.plan-buy-btn {
    background-color: var(--color-yellow);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    max-width: 200px;
    margin-bottom: 0.75rem;
}

.plan-buy-btn:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.plan-buy-btn:active {
    transform: translateY(0);
}

.plan-note {
    font-size: 0.875rem;
    color: rgba(26, 55, 96, 0.5);
    margin-bottom: 1.5rem;
}

.plan-features {
    width: 100%;
    text-align: left;
}

.plan-features-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--color-dark-blue);
    font-size: 0.95rem;
}

.plan-features-header i {
    color: var(--color-dark-blue);
    font-size: 1.2rem;
}

.plan-features-header span {
    line-height: 1.5;
}

.plan-feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    color: rgba(26, 55, 96, 0.6);
    font-size: 0.95rem;
}

.plan-feature-item span {
    line-height: 1.5;
}

.token-history-section {
    margin-top: clamp(3rem, 6vw, 4.5rem);
    width: 100%;
}

.token-history-section .history-table-wrapper {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 0;
    overflow-x: auto;
    overflow: hidden;
}

.token-history-section .history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    margin: 0;
}

.token-history-section .history-table thead {
    background-color: var(--color-green);
}

.token-history-section .history-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    color: var(--color-white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border: none;
}

.token-history-section .history-table thead th:first-child {
    border-top-left-radius: var(--radius-lg);
}

.token-history-section .history-table thead th:last-child {
    border-top-right-radius: var(--radius-lg);
}

.token-history-section .history-table tbody tr {
    border-bottom: none;
    transition: background-color 0.2s ease;
}

.token-history-section .history-table tbody tr:nth-child(odd) {
    background-color: rgba(26, 55, 96, 0.05);
}

.token-history-section .history-table tbody tr:nth-child(even) {
    background-color: var(--color-white);
}

.token-history-section .history-table tbody tr:hover {
    background-color: rgba(26, 55, 96, 0.1);
}

.token-history-section .history-table tbody td {
    padding: 1rem 1.25rem;
    color: var(--color-dark-blue);
    vertical-align: middle;
    border: none;
    font-size: 0.95rem;
}

.token-history-section .history-table tbody td:first-child {
    font-weight: normal;
}

@media (max-width: 768px) {
    .token-balance-indicator {
        padding: 0.75rem 1.5rem;
        gap: 0.5rem;
    }

    .balance-icon {
        font-size: 1.25rem;
    }

    .balance-text {
        font-size: 1.1rem;
    }

    .plans-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .plan-card {
        padding: 1.5rem;
    }

    .choose-plan-title {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

/* Privacy Policy & Terms of Service */
.privacy-section,
.terms-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background-color: var(--color-white);
}

.privacy-section .container,
.terms-section .container {
    max-width: min(1660px, 100%);
    margin: 0 auto;
    padding: 0 3rem;
}

.privacy-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--color-green);
    text-align: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.privacy-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--color-dark-blue);
    line-height: 1.8;
}

.privacy-section-item {
    margin-bottom: 2.5rem;
}

.privacy-section-item h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--color-dark-blue);
    margin-bottom: 1rem;
    margin-top: 0;
}

.privacy-section-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark-blue);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.privacy-section-item p {
    margin-bottom: 1rem;
    color: rgba(26, 55, 96, 0.8);
}

.privacy-section-item ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    padding-left: 0;
}

.privacy-section-item li {
    margin-bottom: 0.5rem;
    color: rgba(26, 55, 96, 0.8);
    list-style-type: disc;
}

.privacy-section-item li strong {
    font-weight: 600;
    color: var(--color-dark-blue);
}

.privacy-conclusion {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 55, 96, 0.1);
}

.privacy-conclusion p {
    color: rgba(26, 55, 96, 0.8);
    font-size: 1rem;
    line-height: 1.8;
}

