* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 50% 20%, #0f172a 0%, #070a13 100%);
    color: #f8fafc;
    font-family: 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.app-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(0, 242, 254, 0.7));
}

.badge {
    background: linear-gradient(135deg, #0072ff 0%, #00d2ff 100%);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.4);
}

.hero-section {
    text-align: center;
}

.hero-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.neon-text {
    background: linear-gradient(90deg, #00f2fe 0%, #4facfe 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.6));
}

.subtitle {
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 35px;
}

.platform-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
}

.platform-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-btn:hover {
    color: #fff;
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(0, 242, 254, 0.3);
    transform: translateY(-2px);
}

.platform-btn.active {
    background: rgba(0, 242, 254, 0.1);
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.platform-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.platform-btn-badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(145, 70, 255, 0.22);
    color: #c4a3ff;
    border-radius: 999px;
    padding: 0.1rem 0.42rem;
    margin-left: 2px;
    flex-shrink: 0;
}

.main-box {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.input-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

input[type="text"] {
    flex: 1;
    background: #0b111e;
    border: 1px solid #1e293b;
    border-radius: 10px;
    padding: 16px 20px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]::placeholder {
    color: #475569;
    transition: color 0.3s ease;
}

input[type="text"]:not(:focus)::placeholder {
    opacity: 1;
}

input[type="text"]:focus {
    border-color: #00f2fe;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

input[type="text"]:focus::placeholder {
    opacity: 0.45;
}

.btn-neon {
    background: linear-gradient(135deg, #0072ff 0%, #00f2fe 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    padding: 0 28px;
    cursor: pointer;
    transition: all 0.3s ease, background 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.4);
    white-space: nowrap;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.btn-neon:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
}

.btn-neon:not(.btn-neon--ready):not(:disabled) {
    background: linear-gradient(135deg, #0072ff 0%, #00f2fe 100%);
    box-shadow: 0 0 20px rgba(0, 114, 255, 0.4);
}

.btn-neon--ready {
    background: linear-gradient(135deg, #7c3aed 0%, #00f2fe 100%);
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.45);
}

.btn-neon--ready:hover {
    box-shadow: 0 0 34px rgba(124, 58, 237, 0.65);
}

.btn-neon:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none !important;
    box-shadow: none;
    background: linear-gradient(135deg, #334155 0%, #475569 100%);
}

input[type="text"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    border-color: #1e293b;
}

.link-preview {
    background: rgba(0, 242, 254, 0.04);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.preview-thumbnail-wrap {
    position: relative;
    flex-shrink: 0;
    width: 140px;
    height: 88px;
    border-radius: 8px;
    overflow: hidden;
    background: #0b111e;
}

.preview-thumbnail-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 242, 254, 0.05) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.6s ease-in-out infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-thumbnail-wrap:has(img[src=""]) ::after,
.preview-thumbnail-wrap.loading::after {
    opacity: 1;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
    to { transform: rotate(360deg); }
}

.btn-gallery-action {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    pointer-events: none;
}

.preview-info {
    flex: 1;
    text-align: left;
    min-width: 0;
}

.preview-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.preview-meta {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 4px;
}

.quality-section {
    margin-top: 10px;
}

.quality-label {
    font-size: 0.82rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.quality-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quality-chip {
    background: rgba(0, 114, 255, 0.1);
    border: 1px solid rgba(0, 114, 255, 0.3);
    color: #7dd3fc;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    line-height: 1.4;
    white-space: nowrap;
}

.quality-chip .chip-size {
    font-weight: 400;
    opacity: 0.7;
    font-size: 0.73rem;
    margin-left: 2px;
}

.quality-chip:hover,
.quality-chip.selected {
    background: rgba(0, 242, 254, 0.2);
    border-color: #00f2fe;
    color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
}

.format-options {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.result-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.result-actions .btn-neon {
    min-height: 52px;
    padding: 14px 28px;
}

.radio-container {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #cbd5e1;
    user-select: none;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #0b111e;
    border: 2px solid #334155;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.radio-container:hover input ~ .checkmark {
    border-color: #00f2fe;
}

.radio-container input:checked ~ .checkmark {
    background-color: #00f2fe;
    border-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.status-box {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 22px 28px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(0, 242, 254, 0.12);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s ease;
}

.status-box.status-searching {
    border-color: rgba(0, 242, 254, 0.35);
    animation: borderPulse 1.6s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% { border-color: rgba(0, 242, 254, 0.18); }
    50%       { border-color: rgba(0, 242, 254, 0.55); box-shadow: 0 0 18px rgba(0, 242, 254, 0.12); }
}

.status-box.status-done  { border-color: rgba(34, 197, 94, 0.35); animation: none; }
.status-box.status-error { border-color: rgba(239, 68, 68, 0.35);  animation: none; }

.status-icon-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(0, 242, 254, 0.12);
    border-top: 3px solid #00f2fe;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
    filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.5));
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-check {
    width: 38px;
    height: 38px;
    animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.status-check svg,
.status-error-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.status-error-icon {
    width: 38px;
    height: 38px;
    animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.status-msg {
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.55;
    max-width: 420px;
}

.status-done  .status-msg { color: #86efac; }
.status-error .status-msg { color: #fca5a5; }

.progress-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0072ff 0%, #00f2fe 100%);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    transition: width 0.25s ease-out;
}

.status-done .progress-bar {
    background: linear-gradient(90deg, #16a34a 0%, #22c55e 100%);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
}

.status-error .progress-bar {
    background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.progress-pct {
    font-size: 0.82rem;
    font-weight: 700;
    color: #00f2fe;
    min-width: 38px;
    text-align: right;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.status-done  .progress-pct { color: #22c55e; }
.status-error .progress-pct { color: #ef4444; }

.hidden { display: none !important; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(30, 41, 59, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(0, 242, 254, 0.15);
    transform: translateY(-3px);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(0, 242, 254, 0.07);
    border: 1px solid rgba(0, 242, 254, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: rgba(0, 242, 254, 0.13);
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 0 18px rgba(0, 242, 254, 0.15);
}

.feature-icon {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

.donate-flag-icon {
    width: 48px;
    height: auto;
    border-radius: 6px;
    margin-bottom: 2px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

.donate-globe-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.about-section {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-header {
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.about-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.about-sub {
    color: #64748b;
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.about-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 36px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.dev-avatar-wrap {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.2);
    background: rgba(0, 114, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dev-avatar-fallback {
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #00f2fe;
}

.dev-info {
    flex: 1;
}

.dev-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.dev-role {
    font-size: 0.9rem;
    color: #00f2fe;
    font-weight: 600;
    margin-bottom: 14px;
}

.dev-bio {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 20px;
}

.dev-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 8px 14px;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.social-chip:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.github-chip { color: #e2e8f0; }

.donate-section {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-radius: 24px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donate-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.donate-header {
    margin-bottom: 36px;
}

.donate-heart {
    font-size: 2.5rem;
    margin-bottom: 14px;
    display: block;
    animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.donate-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 12px;
}

.donate-subtitle {
    color: #64748b;
    font-size: 0.98rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.7;
}

.donate-prompt {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.donate-country-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.donate-country-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 160px;
    font-family: inherit;
}

.donate-country-btn:hover {
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 242, 254, 0.12);
}

.country-flag {
    font-size: 2.2rem;
}

.country-name {
    font-size: 1rem;
    font-weight: 700;
    color: #f1f5f9;
}

.country-sub {
    font-size: 0.78rem;
    color: #64748b;
}

.donate-qr-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.4s ease;
}

.qr-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px;
    color: #94a3b8;
    font-size: 0.95rem;
}

.qr-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 242, 254, 0.1);
    border-top: 3px solid #00f2fe;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.qr-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    animation: fadeIn 0.5s ease;
}

.qr-title {
    font-size: 0.95rem;
    color: #94a3b8;
}

.qr-image-wrap {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.2);
}

.qr-image {
    width: 200px;
    height: 200px;
    display: block;
    border-radius: 6px;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #f1f5f9;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 3rem;
    text-align: center;
    gap: 8px;
    color: #475569;
}

.qr-note {
    font-size: 0.88rem;
    color: #64748b;
    max-width: 340px;
    line-height: 1.6;
}

.donate-intl-step {
    animation: fadeIn 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.intl-icon {
    font-size: 3rem;
}

.donate-intl-step h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f1f5f9;
}

.intl-msg {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 480px;
    line-height: 1.7;
}

.intl-notify {
    font-size: 0.88rem;
    color: #64748b;
    line-height: 1.6;
}

.intl-link {
    color: #00f2fe;
    text-decoration: none;
    font-weight: 600;
}

.intl-link:hover { text-decoration: underline; }

.btn-back {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #64748b;
    padding: 10px 20px;
    font-size: 0.88rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-back:hover {
    border-color: rgba(0, 242, 254, 0.3);
    color: #94a3b8;
}

.app-footer {
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
    margin-top: 10px;
    padding-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 26px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.footer-link {
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: linear-gradient(90deg, #00f2fe, #0072ff);
    transition: width 0.25s ease;
}

.footer-link:hover {
    color: #00f2fe;
}

.footer-link:hover::after {
    width: 100%;
}

.footer-copy {
    color: #475569;
    font-size: 0.82rem;
}

.footer-disclaimer {
    color: #334155;
    font-size: 0.78rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .footer-row {
        flex-direction: column;
        gap: 12px;
    }
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 10, 19, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
    display: none;
}

.modal-overlay.is-open {
    opacity: 1;
}

.modal-box {
    width: 100%;
    max-width: 560px;
    max-height: 82vh;
    overflow-y: auto;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 28px 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 242, 254, 0.08);
    transform: translateY(16px) scale(0.97);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-overlay.is-open .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-box::-webkit-scrollbar {
    width: 6px;
}

.modal-box::-webkit-scrollbar-thumb {
    background: rgba(0, 242, 254, 0.25);
    border-radius: 10px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1.4;
}

.modal-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #00f2fe;
    border-color: rgba(0, 242, 254, 0.4);
    background: rgba(0, 242, 254, 0.08);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
}

.modal-body {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.75;
}

.modal-body p {
    margin-bottom: 14px;
}

.modal-body ul,
.modal-body ol {
    margin: 0 0 6px 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-body li {
    color: #94a3b8;
}

.modal-body li::marker {
    color: #00f2fe;
    font-weight: 700;
}

.modal-body strong {
    color: #e2e8f0;
    font-weight: 700;
}

@media (max-width: 640px) {
    .modal-box {
        padding: 22px 20px;
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .hero-section h1 { font-size: 1.9rem; }
    .about-card { flex-direction: column; align-items: center; text-align: center; padding: 24px; }
    .dev-socials { justify-content: center; }
    .donate-section { padding: 36px 20px; }
    .link-preview { flex-direction: column; }
    .preview-thumbnail-wrap { width: 100%; height: 160px; }
    .input-wrapper { flex-direction: column; }
    .btn-neon { padding: 16px; }
    .platform-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        gap: 6px;
    }
    .platform-btn-badge {
        display: none; 
    }
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.35s ease both;
}

.photo-grid.hidden {
    display: none !important;
}

.photo-grid-title {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.45;
    padding: 0 0.25rem 0.7rem;
    margin: 0 0 0.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.photo-grid-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.35rem;
}

.btn-gallery-action {
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.045);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    transition: background 0.18s, border-color 0.18s, opacity 0.18s, box-shadow 0.18s;
}

.action-icon {
    width: 1.05rem;
    height: 1.05rem;
    flex: 0 0 auto;
}

.action-icon--spin {
    animation: actionIconSpin 0.9s linear infinite;
}

@keyframes actionIconSpin {
    to { transform: rotate(360deg); }
}

.btn-gallery-action:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.24);
}

.btn-gallery-action--accent {
    background: linear-gradient(90deg, #0072ff, #00f2fe);
    border-color: transparent;
    box-shadow: 0 0 10px rgba(0,242,254,0.28);
}

.btn-gallery-action--accent:hover {
    opacity: 0.88;
    box-shadow: 0 0 18px rgba(0,242,254,0.5);
}

.btn-gallery-action:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .photo-grid-actions {
        flex-direction: column;
    }
    .btn-gallery-action {
        width: 100%;
        text-align: center;
    }
}

.photo-cell {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.22s, box-shadow 0.22s;
}

.photo-cell:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,242,254,0.13);
}

.photo-cell img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    background: rgba(255,255,255,0.05);
}

.photo-thumb-clickable {
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.photo-thumb-clickable:hover {
    filter: brightness(1.12);
    transform: scale(1.025);
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 5rem 5rem;
    background: rgba(2, 6, 23, 0.94);
    backdrop-filter: blur(8px);
    animation: lightboxFadeIn 0.2s ease both;
}

.lightbox-content {
    max-width: min(88vw, 920px);
    max-height: calc(100vh - 9rem);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 12rem);
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

.lightbox-counter {
    color: #e2e8f0;
    font-size: 0.9rem;
    font-weight: 700;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(0, 242, 254, 0.16);
    border-color: #00f2fe;
}

.lightbox-close {
    top: 1rem;
    right: 1.25rem;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.45rem;
    transform: translateY(-50%);
}

.lightbox-nav:disabled {
    opacity: 0.4;
    cursor: default;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-download {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    .lightbox-overlay {
        padding: 4rem 1rem 5rem;
    }

    .lightbox-content {
        max-width: 100%;
    }

    .lightbox-nav {
        top: auto;
        bottom: 1.15rem;
        width: 2.5rem;
        height: 2.5rem;
        transform: none;
    }

    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
}

.btn-photo-dl {
    margin: 0.5rem 0.55rem 0.55rem;
    padding: 0.42rem 0;
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #0072ff, #00f2fe);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: opacity 0.18s, box-shadow 0.18s;
    box-shadow: 0 0 10px rgba(0,242,254,0.28);
}

.btn-photo-dl:hover {
    opacity: 0.86;
    box-shadow: 0 0 18px rgba(0,242,254,0.52);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

#btnDownload.btn-neon--ready {
    background: linear-gradient(135deg, #7c3aed 0%, #00c6ff 100%);
    box-shadow: 0 0 22px rgba(124, 58, 237, 0.5);
}

#btnDownload.btn-neon--ready:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(124, 58, 237, 0.7);
}

.status-box.status-searching {
    border-color: rgba(0, 242, 254, 0.3);
    animation: borderPulse 1.6s ease-in-out infinite;
}

.quality-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.quality-options::-webkit-scrollbar { display: none; }

.quality-chip {
    white-space: nowrap;
}

#videoUrl {
    transition: border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.status-error .status-msg {
    color: #fca5a5;
    font-weight: 500;
}

.status-box.status-warning {
    border-color: rgba(251, 146, 60, 0.4);
    animation: none;
}

.status-warning .status-msg      { color: #fdba74; }
.status-warning .status-error-icon svg circle { stroke: #fb923c; }
.status-warning .status-error-icon svg path   { stroke: #fb923c; }

input[type="text"]:disabled {
    opacity: 0.52;
    cursor: not-allowed;
    border-color: #1e293b;
    box-shadow: none;
}

#btnDownload:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none !important;
    box-shadow: none !important;
    background: linear-gradient(135deg, #1e3a5f 0%, #1e4d5f 100%);
}

.status-searching .spinner {
    width: 28px;
    height: 28px;
    border-width: 2.5px;
}

.preview-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.preview-thumb.loaded,
.preview-thumb[src]:not([src=""]) {
    opacity: 1;
}

@media (max-width: 640px) {
    .quality-options {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    .quality-chip {
        flex-shrink: 0;
    }
}

#bootOverlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    background: radial-gradient(circle at 50% 20%, #0f172a 0%, #070a13 100%);
    text-align: center;
    padding: 24px;
    transition: opacity 0.4s ease;
}

#bootOverlay.boot-hidden {
    opacity: 0;
    pointer-events: none;
}

.boot-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
}

.boot-logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
}

.boot-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 242, 254, 0.15);
    border-top-color: #00f2fe;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.boot-msg {
    font-size: 0.95rem;
    color: #94a3b8;
    min-height: 1.4em;
    max-width: 320px;
    transition: opacity 0.25s ease;
}

.boot-msg.boot-msg-fade {
    opacity: 0;
}

.boot-hint {
    font-size: 0.78rem;
    color: #475569;
    max-width: 340px;
    line-height: 1.5;
}

.boot-error {
    color: #f87171;
}

.boot-retry-btn {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid #00f2fe;
    color: #00f2fe;
    padding: 9px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    transition: all 0.25s ease;
}

.boot-retry-btn:hover {
    background: rgba(0, 242, 254, 0.2);
}

body.boot-locked {
    overflow: hidden;
}

.btn-photo-dl .action-icon {
    width: 0.95rem;
    height: 0.95rem;
}