/* Global Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1e293b;
    --light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} */
/*
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
} */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.2rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success);
}

.alert-warning {
    background: #fed7aa;
    color: #92400e;
    border-left: 4px solid var(--warning);
}
/* Header Styles
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo i {
    font-size: 2rem;
}

.slogan {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    font-weight: normal;
    *color: #c5d2ff;
    color: #fff;
    *padding:2px 6px;
    *background-color: #ffffff20;
    text-shadow: 1px 2px 3px grey;
} */

.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    /* color: white; */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
}

.main-nav a:hover {
    /* color: var(--warning); */
}

.main-nav a:not(.logout-btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    /* background: var(--warning); */
    background: white;
    transition: width 0.3s;
}

.main-nav a:not(.btn-login):not(.btn-register):hover::after {
    width: 100%;
}

.user-menu {
    display: flex;
    gap: 1rem;
}

.btn-login, .btn-register,.btn-1 {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-login,.btn-1 {
    color: white;
    border: 2px solid white;
    padding: calc(0.5rem - 2px) 1rem;
}

.btn-login:hover,.btn-1:hover {
    background: white;
    color: var(--primary);
}

.btn-register {
    background: white;
    color: var(--primary);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
/* .hero {
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s 0.2s backwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s 0.4s backwards;
} */

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Verification Section
.verification-section {
    padding: 3rem 0;
}

.verification-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s 0.6s backwards;
}

.verification-card h2 {
    font-size: 2rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.verification-subtitle {
    color: #64748b;
    margin-bottom: 2rem;
}

.verification-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
} */

/* .input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.email-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.btn-verify {
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-verify:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.btn-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.verification-result {
    margin-top: 2rem;
}

.result-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 2rem;
    border-left: 4px solid var(--success);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.result-email {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.result-status {
    padding: 0.5rem 1rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.9rem;
}

.result-status.valid {
    background: #d1fae5;
    color: #065f46;
}

.result-status.invalid {
    background: #fee2e2;
    color: #991b1b;
}

.result-status.risky {
    background: #fed7aa;
    color: #92400e;
}

.result-checks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
}

.check-item i {
    font-size: 1.2rem;
}

.check-item.pass i {
    color: var(--success);
}

.check-item.fail i {
    color: var(--danger);
}

.check-item.warn i {
    color: var(--warning);
}

.risk-score {
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
}

.risk-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.risk-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.risk-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--primary));
    border-radius: 8px;
    transition: width 0.5s;
}

.bulk-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.bulk-info i {
    font-size: 2rem;
    color: var(--primary);
}

.bulk-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
} */

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Features Section */
/* .features-section {
    padding: 4rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
} */

/* How It Works */
/* .how-it-works {
    padding: 4rem 0;
}

.steps {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    flex: 1;
    text-align: center;
    color: white;
}

.step-number {
    width: 60px;
    height: 60px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
} */

/* CTA Section */
/* .cta-section {
    padding: 4rem 0;
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary-large, .btn-secondary-large {
    padding: 1.2rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary-large {
    background: white;
    color: var(--primary);
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-secondary-large {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-large:hover {
    background: white;
    color: var(--primary);
} */

/* Footer */
/* .footer {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 1.8rem;
}

.footer-col h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
    
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
}

.footer-col ul li a:hover {
    color: white;
}
.footer-col ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    *background: var(--warning);
    background: white;
    transition: width 0.3s;
}

.footer-col ul li a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
} */

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* user dropdown menu Styles */
.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.user-dropdown-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.user-avatar-small {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:first-child {
    border-radius: 8px 16px 0 0;
}

.dropdown-menu a:last-child {
    border-radius: 0 0 16px 16px;
}

.dropdown-menu a:hover {
    background: #f8fafc;
    /* text-decoration: none; */
}

.dropdown-menu i {
    color: var(--primary);
    width: 20px;
}

.logged-in {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* End user dropdown menu Styles */

/* --- Start THE TOOLTIP LOGIC --- */
/* 1. The Trigger Element */
.tooltip {
  text-decoration: none;
  border-bottom: 1px dotted #666;
  cursor: help;
  position: relative; /* Essential for positioning */
  color: #2c3e50;
  font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease;
  display: inline-block; /* Ensures proper sizing */
}

/* Hover/Active State for the word */
.tooltip:hover,
.tooltip:active,
.tooltip:focus {
  color: #3498db;
  border-bottom-color: #3498db;
  outline: none; /* Remove default focus outline */
}

/* 2. The Tooltip Box (Hidden by default) */
.tooltip::after {
  /* Pull text from the data-tooltip attribute */
  content: attr(data-tooltip); 
  
  /* Positioning */
  position: absolute;
  bottom: 125%; 
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  
  /* Styling */
  background-color: #fde68a; /* Light yellow background */
  color: #000; 
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  white-space: normal;
  max-width: 300px;
  width: max-content;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1000;
  
  /* Animation */
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* 3. The Arrow */
.tooltip::before {
  content: '';
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  border-width: 6px;
  border-style: solid;
  border-color: #2c3e50 transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

/* 4. Show on Hover, Focus, or Active (Mobile Click) */
.tooltip:hover::after,
.tooltip:hover::before,
.tooltip:focus::after,
.tooltip:focus::before,
.tooltip:active::after,
.tooltip:active::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Position Below (for JS toggle) */
.tooltip.tooltip-below::after {
  bottom: auto;
  top: 125%;
  transform: translateX(-50%) translateY(-10px);
}

.tooltip.tooltip-below::before {
  bottom: auto;
  top: 115%;
  border-color: transparent transparent #2c3e50 transparent;
  transform: translateX(-50%) translateY(-10px);
}

.tooltip.tooltip-below:hover::after,
.tooltip.tooltip-below:active::after {
  transform: translateX(-50%) translateY(0);
}

/* Tall Content Handling */
.tooltip-tall::after {
  max-height: 250px;
  overflow-y: auto;
  white-space: normal;
}

/* --- HORIZONTAL ADJUSTMENT CLASSES (Missing from previous step) --- */

/* Align Tooltip to the LEFT edge of the word */
.tooltip.tooltip-left::after {
  left: 0; /* Anchor to the left side of the word */
  right: auto;
  transform: translateX(0) translateY(10px); /* Reset centering transform */
}

.tooltip.tooltip-left::before {
  left: 15px; /* Position arrow slightly inward from the left edge */
  right: auto;
  transform: translateX(0) translateY(10px);
}

/* Ensure animation works correctly for left-aligned */
.tooltip.tooltip-left:hover::after,
.tooltip.tooltip-left:active::after,
.tooltip.tooltip-left:focus::after {
  transform: translateX(0) translateY(0);
}


/* Align Tooltip to the RIGHT edge of the word */
.tooltip.tooltip-right::after {
  left: auto;
  right: 0; /* Anchor to the right side of the word */
  transform: translateX(0) translateY(10px); /* Reset centering transform */
}

.tooltip.tooltip-right::before {
  left: auto;
  right: 15px; /* Position arrow slightly inward from the right edge */
  transform: translateX(0) translateY(10px);
}

/* Ensure animation works correctly for right-aligned */
.tooltip.tooltip-right:hover::after,
.tooltip.tooltip-right:active::after,
.tooltip.tooltip-right:focus::after {
  transform: translateX(0) translateY(0);
}

/* Special case: If it's BELOW and also LEFT/RIGHT */
.tooltip.tooltip-below.tooltip-left::after {
  transform: translateX(0) translateY(-10px);
}
.tooltip.tooltip-below.tooltip-left:hover::after {
  transform: translateX(0) translateY(0);
}

.tooltip.tooltip-below.tooltip-right::after {
  transform: translateX(0) translateY(-10px);
}
.tooltip.tooltip-below.tooltip-right:hover::after {
  transform: translateX(0) translateY(0);
}

/* Mobile Optimization */
@media (max-width: 600px) {
  .tooltip::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(10px);
    /* white-space: normal; */
    max-width: 250px;
    width: max-content;
    text-align: center;
  }
  .tooltip::before {
    left: auto;
    right: 15px;
    transform: translateX(0) translateY(10px);
  }
  .tooltip:hover::after,
  .tooltip:active::after {
    transform: translateX(0) translateY(0);
  }
  .tooltip.tooltip-below::after {
    transform: translateX(0) translateY(0);
  }
}
/* --- End THE TOOLTIP LOGIC --- */

/* Footer */
/* .footer {
    background: var(--dark);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-grid {
    
} */

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {

    }
    
}

/* Footer */
/* .footer {
    background: var(--dark);
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-grid {
    
} */

/* Responsive Design */
@media (max-width: 639px) {
    /* default size */
}

@media (max-width: 460px) {
    .user-menu {
        scale: 0.8;
    }
}

@media (min-width: 640px) {
    /* sm size */
}

@media (min-width: 768px) {
    /* md size */
}

@media (min-width: 1024px) {
    /* lg size */
}

@media (min-width: 1280px) {
    /* xl size */
}

@media (min-width: 1536px) {
    /* 32xl size */
}




@media (max-width: 767px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav {
        display: none;
    }
    .main-nav.active {
        display: flex;
        flex-direction: column;
        width: 75%;
        gap: 10px;
        
        position: absolute;
        top: 65px;
        right: 20px;
        /* background-color: #5c71d1; */
        background: linear-gradient(135deg, #667eea 0%, #9fadec 100%);
        background: linear-gradient(135deg, #667eea 0%, #764da5 100%);
        padding: 10px;
    }
    .main-nav.active a {
        border: 1px solid #fff;
        padding: 5px 30px;
        width: 100%;
        background-color: #ffffff30;
        border-radius: 4px;  
    }
        
    .mobile-menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }

    .code-input-group {
        flex-direction: column;
    }
    .btn-select-plan.primary {
        width: unset !important;
    }
}

@media (max-width: 968px) {

}