/* Redesigned Premium CSS for Ravi Gautam Tools - Password Checker */
:root {
    --bg-dark: #0f1123;
    --primary-glow: #6366f1;
    --secondary-glow: #d946ef;
    --cyan-glow: #06b6d4;
    --text-primary: #f3f4f6;
    --text-muted: #9ca3af;
    --card-bg: rgba(22, 25, 49, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Orbs with Breathing Animation */
body::before, body::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(130px);
    z-index: -1;
    opacity: 0.45;
}

body::before {
    top: 15%;
    left: 10%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: floatOrbLeft 20s infinite alternate ease-in-out;
}

body::after {
    bottom: 15%;
    right: 10%;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    animation: floatOrbRight 25s infinite alternate ease-in-out;
}

/* Top Announcement Bar */
.announcement-bar {
    width: 100%;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.85), rgba(217, 70, 239, 0.85));
    backdrop-filter: blur(10px);
    padding: 12px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.announcement-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.announcement-link i {
    animation: pulse 1.5s infinite;
}

.announcement-link span strong {
    color: #a7f3d0;
    text-transform: uppercase;
}

/* Main Container Root */
.passfind-container-root {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* Card Panel - Full Glassmorphism */
.passfind-card-panel {
    width: 100%;
    max-width: 440px;
    background: rgba(10, 12, 30, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 45px 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    animation: cardEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.passfind-card-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

/* Brand Logo Layout */
.passfind-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.passfind-text-logo {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    font-size: 34px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    width: 100%;
}

.passfind-text-logo .logo-ravi {
    color: #3b82f6; /* Bright vibrant blue */
    font-weight: 800; /* Extra bold */
    text-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
}

.passfind-text-logo .logo-tools {
    color: #6b7280; /* Gray */
    font-weight: 800; /* Extra bold */
    text-shadow: 0 0 25px rgba(107, 114, 128, 0.4);
}

.passfind-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.passfind-form-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0px;
}

/* Form Styling */
.passfind-form-body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.passfind-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.passfind-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
}

.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 15px;
    transition: color 0.3s ease;
}

.passfind-input-field {
    width: 100% !important;
    height: 48px !important;
    background: rgba(10, 11, 22, 0.7) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 0 16px 0 45px !important; /* Indent for icon */
    font-size: 14px !important;
    color: #ffffff !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4) !important;
    transition: all 0.3s ease !important;
}

.passfind-input-field:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4), 
                inset 0 1px 1px rgba(0,0,0,0.2) !important;
}

.passfind-input-field:focus + .input-icon {
    color: #2563eb;
}

/* Checkbox & Options Row */
.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 5px 0 15px 0;
    font-size: 13px;
}

.custom-checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-container input {
    display: none;
}

.custom-checkbox-container .checkmark {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    display: inline-block;
    position: relative;
    background: rgba(10, 11, 22, 0.7);
}

.custom-checkbox-container input:checked + .checkmark {
    background: #2563eb;
    border-color: #2563eb;
}

.custom-checkbox-container .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    display: none;
}

.custom-checkbox-container input:checked + .checkmark::after {
    display: block;
}

.help-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.help-link:hover {
    text-decoration: underline;
}

/* Check Button */
.passfind-btn-submit {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
    transition: all 0.3s ease;
}

.passfind-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.5);
}

.passfind-btn-submit:active {
    transform: translateY(1px);
}

.passfind-form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.5px;
}

/* Modal styling */
.passfind-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 9, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.passfind-modal-content {
    width: 100%;
    max-width: 460px;
    background: #161830;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalScaleUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.icon-circle.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.icon-circle.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.3);
}

.icon-circle.limit {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.3);
}

.modal-body-content {
    text-align: center;
}

.success-title {
    color: #10b981;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.error-title {
    color: #ef4444;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.error-text-message {
    font-size: 14px;
    color: #e5e7eb;
    line-height: 1.6;
    margin-bottom: 20px;
}

.file-details-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.detail-row .label {
    color: var(--text-muted);
}

.detail-row .value {
    font-weight: 600;
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Package Badges */
.badge-tier {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.badge-tier.package-platinum {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.badge-tier.package-super-platinum {
    background: rgba(217, 70, 239, 0.15);
    color: #f472b6;
    border: 1px solid rgba(217, 70, 239, 0.3);
}

.badge-tier.package-ultra-platinum {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.password-display-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1.5px dashed rgba(16, 185, 129, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.pw-label {
    display: block;
    font-size: 12px;
    color: #34d399;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.password-text {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    word-break: break-all;
}

.usage-limit-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.usage-limit-indicator i {
    color: var(--cyan-glow);
}

.alert-info-box {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 12px;
    padding: 12px 15px;
    display: flex;
    gap: 10px;
    text-align: left;
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.alert-info-box i {
    color: var(--cyan-glow);
    font-size: 16px;
    margin-top: 2px;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-action-modal {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-action-modal.btn-copy {
    background: #10b981;
    color: white;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-action-modal.btn-copy:hover {
    background: #059669;
}

.btn-action-modal.btn-close-modal {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    width: 100%;
    justify-content: center;
}

.btn-action-modal.btn-close-modal:hover {
    background: rgba(255,255,255,0.15);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalScaleUp {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.passfind-modal-overlay.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.passfind-modal-overlay.fade-out .passfind-modal-content {
    animation: modalScaleDown 0.3s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; }
}

@keyframes modalScaleDown {
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Responsive constraints */
@media(max-width: 500px) {
    .passfind-card-panel {
        padding: 30px 20px;
    }
    .passfind-form-header h1 {
        font-size: 21px;
    }
}

/* Animations declarations */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatOrbLeft {
    0% {
        transform: translate(0, 0) scale(1);
        background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    }
    33% {
        transform: translate(80px, 60px) scale(1.15);
        background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 70%);
    }
    66% {
        transform: translate(-50px, 90px) scale(0.9);
        background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
    }
    100% {
        transform: translate(0, 0) scale(1);
        background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    }
}

@keyframes floatOrbRight {
    0% {
        transform: translate(0, 0) scale(1);
        background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    }
    50% {
        transform: translate(-100px, -70px) scale(1.2);
        background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    }
    100% {
        transform: translate(0, 0) scale(1);
        background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    }
}

/* ======================================================================
   CSS Universe, Milky Way & Shooting Stars Background
   ====================================================================== */
.universe-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: #05060f;
    overflow: hidden;
}

/* Milky Way Wrapper containing core & dust clouds */
.milkyway-galaxy {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%) rotate(-15deg);
    animation: rotateGalaxy 120s infinite linear;
}

/* Glowing Cosmic Core */
.milkyway-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 220, 150, 0.7) 30%, rgba(217, 70, 239, 0.18) 60%, transparent 80%);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    filter: blur(20px);
    animation: pulseCore 8s infinite alternate ease-in-out;
    box-shadow: 0 0 100px rgba(255, 255, 255, 0.45);
}

/* Cosmic Nebula Dust clouds with blending radial gradients */
.cosmic-nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.52;
    mix-blend-mode: screen;
}

.nebula-saffron {
    top: 15%;
    left: 20%;
    width: 550px;
    height: 380px;
    background: radial-gradient(circle, rgba(255, 120, 0, 0.35) 0%, transparent 75%);
    animation: driftDust1 35s infinite alternate ease-in-out;
}

.nebula-purple {
    bottom: 20%;
    right: 20%;
    width: 600px;
    height: 420px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.42) 0%, transparent 75%);
    animation: driftDust2 45s infinite alternate ease-in-out;
}

.nebula-cyan {
    top: 25%;
    right: 15%;
    width: 480px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.38) 0%, transparent 75%);
    animation: driftDust3 40s infinite alternate ease-in-out;
}

.nebula-blue {
    bottom: 15%;
    left: 15%;
    width: 500px;
    height: 380px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.38) 0%, transparent 75%);
    animation: driftDust1 50s infinite alternate ease-in-out;
}

/* Animations Keyframes */
@keyframes rotateGalaxy {
    from { transform: translate(-50%, -50%) rotate(-15deg); }
    to { transform: translate(-50%, -50%) rotate(345deg); }
}

@keyframes pulseCore {
    0% { transform: translate(-50%, -50%) rotate(-10deg) scale(0.95); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) rotate(-10deg) scale(1.05); opacity: 1; }
}

@keyframes driftDust1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}

@keyframes driftDust2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-60px, -30px) scale(1.08); }
}

@keyframes driftDust3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -50px) scale(1.12); }
}

/* Twinkling Stars */
.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px #ffffff;
}

.star-t1 { animation: twinkle 3s infinite ease-in-out; }
.star-t2 { animation: twinkle 4.5s infinite ease-in-out; animation-delay: 1.5s; }
.star-t3 { animation: twinkle 6s infinite ease-in-out; animation-delay: 3s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 10px #ffffff, 0 0 20px var(--cyan-glow); }
}

/* Shooting Stars (Toote Taare) */
.shooting-stars {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shooting-star {
    position: absolute;
    width: 120px;
    height: 2px;
    background: linear-gradient(-45deg, #ffffff, rgba(255, 255, 255, 0));
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9));
    transform: rotate(-45deg);
    opacity: 0;
}

/* Shooting Stars Positions and Delays */
.ss-1 {
    top: 5%;
    right: 10%;
    animation: shootStar1 9s infinite linear;
    animation-delay: 1s;
}

.ss-2 {
    top: 25%;
    right: 25%;
    animation: shootStar2 12s infinite linear;
    animation-delay: 4s;
}

.ss-3 {
    top: 45%;
    right: 5%;
    animation: shootStar3 10s infinite linear;
    animation-delay: 7s;
}

.ss-4 {
    top: 15%;
    right: 40%;
    animation: shootStar4 15s infinite linear;
    animation-delay: 2s;
}

@keyframes shootStar1 {
    0% { transform: translate(0, 0) rotate(-45deg); opacity: 0; width: 0px; }
    5% { opacity: 1; width: 120px; }
    15% { transform: translate(-300px, 300px) rotate(-45deg); opacity: 0; width: 0px; }
    100% { transform: translate(-300px, 300px) rotate(-45deg); opacity: 0; }
}

@keyframes shootStar2 {
    0% { transform: translate(0, 0) rotate(-45deg); opacity: 0; width: 0px; }
    4% { opacity: 1; width: 150px; }
    12% { transform: translate(-400px, 400px) rotate(-45deg); opacity: 0; width: 0px; }
    100% { transform: translate(-400px, 400px) rotate(-45deg); opacity: 0; }
}

@keyframes shootStar3 {
    0% { transform: translate(0, 0) rotate(-45deg); opacity: 0; width: 0px; }
    6% { opacity: 1; width: 100px; }
    18% { transform: translate(-250px, 250px) rotate(-45deg); opacity: 0; width: 0px; }
    100% { transform: translate(-250px, 250px) rotate(-45deg); opacity: 0; }
}

@keyframes shootStar4 {
    0% { transform: translate(0, 0) rotate(-45deg); opacity: 0; width: 0px; }
    5% { opacity: 1; width: 130px; }
    15% { transform: translate(-350px, 350px) rotate(-45deg); opacity: 0; width: 0px; }
    100% { transform: translate(-350px, 350px) rotate(-45deg); opacity: 0; }
}

/* ======================================================================
   Mobile Performance Optimization (Bypasses heavy GPU rendering)
   ====================================================================== */
@media (max-width: 768px) {
    /* Stop heavy rotating and drifting animations of nebulas and core on mobile */
    .milkyway-galaxy,
    .milkyway-core,
    .cosmic-nebula,
    body::before,
    body::after {
        animation: none !important;
        transform: translate(-50%, -50%) !important; /* Keep center static */
    }
    
    body::before {
        top: 15%;
        left: 10%;
        transform: none !important;
    }
    body::after {
        bottom: 15%;
        right: 10%;
        transform: none !important;
    }
    
    /* Lower blur radius for faster rendering performance on phone GPUs */
    .cosmic-nebula {
        filter: blur(80px) !important;
    }
    body::before, body::after {
        filter: blur(90px) !important;
    }
    
    /* Simplify star rendering (static twinkling stars are fine, but no dynamic animation is faster) */
    .star {
        animation: none !important;
        opacity: 0.7 !important;
    }
    .shooting-star {
        display: none !important; /* Shooting stars not needed on mobile */
    }
}