/* Professional Registration Modal - Two-Column Layout */

/* Modal Backdrop */
.suggestregistration-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.suggestregistration-modal-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* Light theme toggle */
body.light-theme .suggestregistration-modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
}

/* Privacy Consent Checkbox */
.privacy-consent {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 8px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 2px;
    width: 18px;
    height: 18px;
    accent-color: #007bff;
    cursor: pointer;
}

.checkbox-label {
    flex: 1;
    cursor: pointer;
    line-height: 1.5;
    color: #333;
}

.migration-preview {
    font-weight: bold;
    color: #007bff !important;
}

.privacy-note {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Light theme adjustments */
body.light-theme .privacy-consent {
    background: rgba(0, 123, 255, 0.08);
    border-color: rgba(0, 123, 255, 0.3);
}

body.light-theme .checkbox-label {
    color: #555;
}

body.light-theme .privacy-note {
    color: #777;
}

/* Soft Nudge Banner - Contextually positioned */
.soft-nudge-banner {
    position: relative;
    z-index: 1000;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    margin: 10px 0;
    border-radius: 8px;
}

/* Header banner specific styling */
.soft-nudge-banner.header-banner {
    position: relative;
    flex-grow: 1;
    margin: 0 24px;
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 6px;
    font-size: 13px;
    box-shadow: none;
    max-width: none;
    display: flex;
    align-items: center;
}

.soft-nudge-banner.header-banner .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.soft-nudge-banner.header-banner .banner-icon {
    font-size: 12px;
}

.soft-nudge-banner.header-banner .banner-text {
    font-size: 12px;
    line-height: 1.3;
}

.soft-nudge-banner.header-banner .banner-text strong {
    font-weight: 600;
}

.soft-nudge-banner.header-banner .banner-cta {
    padding: 4px 8px;
    font-size: 11px;
    background: var(--color-accent);
    border-radius: 4px;
}

.soft-nudge-banner.header-banner .banner-dismiss {
    position: relative;
    right: auto;
    top: auto;
    padding: 2px 6px;
    font-size: 14px;
    background: none;
    color: var(--text-color);
    opacity: 0.7;
}

.soft-nudge-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.soft-nudge-banner.hiding,
.soft-nudge-banner.auto-hiding {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.banner-text strong {
    font-weight: 600;
}

.banner-cta {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.banner-cta:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.banner-dismiss {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* Tablet and smaller desktop responsive handling */
@media (max-width: 1024px) {
    .soft-nudge-banner.header-banner {
        margin: 0 12px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .soft-nudge-banner.header-banner .banner-text {
        font-size: 11px;
    }
    
    .soft-nudge-banner.header-banner .banner-cta {
        padding: 3px 6px;
        font-size: 10px;
    }
}

/* Desktop: Hide nudge banner by default (only show in header context) */
@media (min-width: 769px) {
    .soft-nudge-banner:not(.header-banner) {
        display: none;
    }
}

/* Mobile responsiveness for banner */
@media (max-width: 768px) {
    /* Hide header banner on mobile to avoid crowding */
    .soft-nudge-banner.header-banner {
        display: none;
    }
    
    .soft-nudge-banner {
        position: fixed;
        bottom: 70px; /* Above bottom navigation */
        left: 8px;
        right: 8px;
        margin: 0;
        padding: 8px 12px;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.15);
        transform: translateY(100px);
        min-height: auto;
    }
    
    .soft-nudge-banner.show {
        transform: translateY(0);
    }
    
    .soft-nudge-banner.hiding,
    .soft-nudge-banner.auto-hiding {
        transform: translateY(100px);
    }
    
    .banner-content {
        gap: 8px;
        align-items: center;
    }
    
    .banner-icon {
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .banner-text {
        font-size: 11px;
        line-height: 1.3;
        flex: 1;
    }
    
    .banner-text strong {
        font-weight: 600;
    }
    
    .banner-cta {
        padding: 4px 8px;
        font-size: 10px;
        border-radius: 4px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .banner-dismiss {
        padding: 2px 4px;
        font-size: 14px;
        flex-shrink: 0;
        min-width: 20px;
        text-align: center;
    }
}

/* Extra small phones (iPhone SE, etc.) - further compact the banner */
@media (max-width: 420px) {
    .soft-nudge-banner {
        left: 6px;
        right: 6px;
        padding: 6px 10px;
        bottom: 65px;
    }
    
    .banner-content {
        gap: 6px;
    }
    
    .banner-icon {
        font-size: 12px;
    }
    
    .banner-text {
        font-size: 10px;
        line-height: 1.2;
    }
    
    .banner-cta {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .banner-dismiss {
        font-size: 12px;
        min-width: 18px;
    }
}

/* Desktop banner positioning - no margin adjustments needed since it's inline */

/* Modal Container - Two Column Layout */
.registration-modal {
    background: #1e293b !important;
    border-radius: 16px;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    max-width: 800px !important;
    width: 90% !important;
    overflow: hidden;
    border: 1px solid #334155;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    min-height: 600px !important;
    transform: scale(0.95) translateY(30px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #e2e8f0;
}

body.light-theme .registration-modal {
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    color: #1e293b;
}

.suggestregistration-modal-backdrop.show .registration-modal {
    transform: scale(1) translateY(0);
}

/* Left Column - Blue Gradient */
.left-column {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.left-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="0.5" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 6px;
    position: relative;
}

.logo-icon::after {
    content: '₹';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.left-column h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    position: relative;
    z-index: 1;
    margin: 0;
}

.left-column p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.savings-highlight {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.savings-highlight .amount {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.savings-highlight .description {
    font-size: 14px;
    opacity: 0.9;
}

/* Right Column */
.right-column {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #1e293b;
}


body.light-theme .right-column {
    background: white;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 32px;
    text-align: center;
    letter-spacing: -0.025em;
}

body.light-theme .section-title {
    color: #0f172a;
}


/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    border: 1px solid #475569;
    background: #334155;
    cursor: default;
}

body.light-theme .feature-item {
    border: 1px solid #e2e8f0;
    background: #fafbfc;
}

.feature-item:hover {
    background: #475569;
    border-color: #64748b;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

body.light-theme .feature-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}

.feature-icon.save {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.feature-icon.history {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.feature-icon.tax {
    background: linear-gradient(135deg, #10b981, #059669);
}

.feature-icon.reports {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.feature-icon.benchmark {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.feature-icon.charts {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.feature-title {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

body.light-theme .feature-title {
    color: #0f172a;
}

.feature-description {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

body.light-theme .feature-description {
    color: #64748b;
}

/* CTA Section */
.cta-section {
    text-align: center;
}

.primary-button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.primary-button:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.primary-button:active {
    transform: translateY(0);
    background: #1d4ed8;
}

.secondary-button {
    background: transparent;
    color: #94a3b8;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
    text-decoration: underline;
}

body.light-theme .secondary-button {
    color: #64748b;
}

.secondary-button:hover {
    color: #cbd5e1;
}

body.light-theme .secondary-button:hover {
    color: #475569;
}

.trust-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 20px;
    text-align: center;
}

body.light-theme .trust-text {
    color: #64748b;
}

/* Pulse Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .registration-modal {
        grid-template-columns: 1fr;
        max-width: 360px;
        width: 95%;
        margin: 10px;
        min-height: auto;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .left-column {
        padding: 20px 16px;
        text-align: center;
        min-height: auto;
    }
    
    .right-column {
        padding: 20px 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .feature-item {
        flex-direction: row;
        text-align: left;
        padding: 12px;
    }
    
    .feature-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
        margin-bottom: 0;
        font-size: 12px;
    }
    
    .left-column h1 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .left-column p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input {
        padding: 12px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .modal-close {
        top: 10px;
        right: 12px;
        font-size: 20px;
    }
}

/* Extra small phones (iPhone SE, small screens) */
@media (max-width: 420px) {
    .registration-modal {
        max-width: 320px;
        width: 98%;
        margin: 5px;
        max-height: 90vh;
        border-radius: 12px;
    }
    
    .left-column {
        padding: 16px 12px;
    }
    
    .right-column {
        padding: 16px 12px;
    }
    
    .left-column h1 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .left-column p {
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .logo {
        width: 36px;
        height: 36px;
        margin-right: 12px;
    }
    
    .logo-icon {
        border-radius: 4px;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .feature-item {
        padding: 10px;
    }
    
    .feature-icon {
        width: 24px;
        height: 24px;
        margin-right: 8px;
        font-size: 10px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group input {
        padding: 10px;
        font-size: 13px;
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .modal-close {
        top: 8px;
        right: 10px;
        font-size: 18px;
        width: 28px;
        height: 28px;
    }
    
    .privacy-consent {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .features-grid {
        gap: 8px;
    }
}

/* Background blur effect when modal is open */
.main-content-blurred {
    filter: blur(4px) brightness(0.7);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    user-select: none;
}

body.light-theme .main-content-blurred {
    filter: blur(4px) brightness(0.9);
}

/* Legacy nudge styles (completely hidden) */
.registration-nudge {
    display: none !important;
    visibility: hidden !important;
}