html {
    scroll-behavior: smooth;
}

/* Custom Design System & Global Styles (Premium Corporate Dark Theme) */
:root {
    --bg-color: #030712; /* Space Obsidian Black */
    --card-bg: rgba(17, 24, 39, 0.65); /* Frosted Slate Glass */
    --card-border: rgba(255, 255, 255, 0.08);
    --primary: #3b82f6; /* Glowing Royal Blue */
    --primary-hover: #2563eb;
    --primary-glow: rgba(59, 130, 246, 0.2);
    --secondary: #f8fafc; /* Crisp Ice White */
    --secondary-hover: #e2e8f0;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --success: #10b981;
    --error: #ef4444;
    --font-family: 'Outfit', sans-serif;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 
              0 25px 50px -12px rgba(0, 0, 0, 0.6), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1100px;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    z-index: 10;
}

/* ========================================================
   Top Navigation Bar (Navbar)
   ======================================================== */
.navbar {
    width: 100%;
    height: 70px;
    background: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1100px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.nav-logo span span {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.nav-auth {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: 12px;
}

.btn-login {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-login:hover {
    color: var(--primary);
}

.btn-signup {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
    padding-top: 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-section h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.8px;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 800px;
}

.hero-steps-container {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.steps-list {
    list-style: none;
    counter-reset: step-counter;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 0;
}

.steps-list li {
    position: relative;
    padding-left: 28px;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.steps-list li::before {
    content: counter(step-counter) ".";
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.05rem;
}

.platform-support {
    font-weight: 700;
    color: var(--secondary);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-support::before {
    content: '•';
    color: var(--success);
    font-size: 1.4rem;
}

/* ========================================================
   Upload & Stats Two Column Grid
   ======================================================== */
.upload-stats-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 32px;
    align-items: start;
}

.column-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

/* Premium Card widget */
.dashboard-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

/* Drag and Drop Zone */
.drop-zone {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(3, 7, 18, 0.4);
    border-radius: 16px;
    padding: 44px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 5;
}

.drop-zone::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1.5px dashed rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.drop-zone:hover::before, .drop-zone.dragover::before {
    border-color: var(--primary);
    inset: 6px;
    background: rgba(59, 130, 246, 0.03);
}

.upload-icon-container {
    width: 54px;
    height: 54px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
    transition: all 0.3s ease;
    animation: bounceUp 3s ease-in-out infinite;
}

.drop-zone:hover .upload-icon-container, .drop-zone.dragover .upload-icon-container {
    color: #ffffff;
    background: var(--primary);
    animation: pulseGlow 1.5s infinite;
}

.upload-icon {
    width: 24px;
    height: 24px;
}

.drop-zone h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 6px;
}

.file-types {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.file-types strong {
    color: var(--secondary);
}

/* Buttons */
.btn {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #0891b2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.btn-secondary {
    background: #1f2937;
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: #374151;
    transform: translateY(-1px);
}

/* Progress card styles */
.progress-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.file-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2px;
    word-break: break-all;
}

.file-info p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar-wrapper {
    width: 100%;
    height: 6px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #06b6d4);
    border-radius: 10px;
    transition: width 0.1s ease;
}

.progress-status {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-muted);
}

#progress-percent {
    color: var(--secondary);
    font-weight: 700;
}

/* Success Card details */
.success-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.success-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.success-checkmark {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.success-checkmark svg {
    width: 20px;
    height: 20px;
}

.success-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

.success-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.app-details-preview {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.result-app-icon, .app-icon-large {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.result-meta h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
}

.result-pkg {
    font-size: 0.78rem;
    color: var(--text-muted);
    word-break: break-all;
}

.tags {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.tag-os, .tag-ver {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.tag-os {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}

.tag-ver {
    background: rgba(255, 255, 255, 0.08);
    color: var(--secondary);
}

/* Sharing & Copy Section */
.share-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.share-section label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--secondary);
}

.link-copy-container {
    display: flex;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.link-copy-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.link-copy-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 14px;
    color: var(--secondary);
    font-family: var(--font-family);
    font-size: 0.85rem;
    outline: none;
}

.btn-copy {
    background: var(--primary);
    color: #ffffff;
    border-radius: 0;
    padding: 0 16px;
}

/* QR Code Section */
.qr-section {
    background: rgba(15, 23, 42, 0.5);
    border: 1.5px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.qr-container {
    background: #ffffff; /* White background is mandatory for QR codes to scan properly */
    padding: 6px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.qr-info h5 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 2px;
}

.qr-info p {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.action-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.action-footer .btn {
    flex: 1;
}

/* ========================================================
   Checkbox Styling (Uploader Options)
   ======================================================== */
.upload-options {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 28px;
    margin-bottom: 2px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.4;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: rgba(3, 7, 18, 0.4);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--primary);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

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

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

/* Share Card Styling */
.share-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.share-buttons-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.share-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.share-icon-btn svg {
    width: 18px;
    height: 18px;
}

.share-icon-btn.whatsapp { background-color: #128c7e; }
.share-icon-btn.twitter { background-color: #1e293b; border: 1px solid rgba(255,255,255,0.1); }
.share-icon-btn.linkedin { background-color: #0077b5; }
.share-icon-btn.facebook { background-color: #1877f2; }
.share-icon-btn.email { background-color: #4b5563; }

.share-icon-btn:hover {
    transform: translateY(-2px) scale(1.08);
    filter: brightness(1.15);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

/* ========================================================
   Stats Card Styling
   Deployments Card Styling
   ======================================================== */
.deployments-card {
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.4), 
                0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 200px;
}

.deployments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom scrollbar for deployments list */
.deployments-list::-webkit-scrollbar {
    width: 4px;
}
.deployments-list::-webkit-scrollbar-track {
    background: transparent;
}
.deployments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.deployment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(3, 7, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    transition: all 0.2s;
}

.deployment-item:hover {
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(3, 7, 18, 0.6);
}

.dep-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dep-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.dep-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
}

.dep-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.dep-platform {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    text-transform: uppercase;
}

.dep-platform.ios {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.dep-platform.android {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.dep-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dep-timer {
    color: #f43f5e;
    font-weight: 500;
}

.dep-actions {
    display: flex;
    gap: 6px;
}

.btn-dep-action {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-dep-action svg {
    width: 14px;
    height: 14px;
}

.btn-dep-action:hover {
    color: var(--secondary);
    background: rgba(255, 255, 255, 0.12);
}

.btn-dep-action.copy:hover {
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--primary);
}

.btn-dep-action.delete:hover {
    border-color: rgba(244, 63, 94, 0.3);
    color: #f43f5e;
}

.empty-deployments {
    text-align: center;
    padding: 36px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-icon {
    width: 32px;
    height: 32px;
    color: rgba(255, 255, 255, 0.15);
}

.empty-deployments p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
}

.empty-deployments span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.server-status-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--success);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* ========================================================
   Features Section
   ======================================================== */
.features-section {
    padding: 16px 0;
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 30px;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    background: rgba(17, 24, 39, 0.45);
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.feature-icon-wrapper {
    width: 44px;
    height: 44px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-svg {
    width: 24px;
    height: 24px;
}

.feature-item h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
}

.feature-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================================
   Trust badging row
   ======================================================== */
.trust-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: rgba(17, 24, 39, 0.45);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}

.trust-svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

/* Utilities */
.hidden {
    display: none !important;
}

.main-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 16px 0;
    border-top: 1px solid var(--card-border);
}

/* Keyframes Animations */
@keyframes bounceUp {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

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

/* Smooth View Transitions */
.fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* ========================================================
   Mobile Installer Styles (app.html)
   ======================================================== */
.mobile-installer {
    padding: 15px;
    align-items: flex-start;
    padding-top: 40px;
    background-color: var(--bg-color);
}

.mobile-container {
    max-width: 440px;
    margin: 0 auto;
}

.install-card {
    padding: 28px 20px;
}

.app-profile {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.app-icon-large {
    width: 76px;
    height: 76px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

#app-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
}

.app-bundle-id {
    color: var(--text-muted);
    font-size: 0.8rem;
    word-break: break-all;
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.spec-item {
    background: rgba(17, 24, 39, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.spec-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary); /* Glowing royal blue left indicator by default! */
    box-shadow: 0 0 8px var(--primary);
    transition: all 0.2s;
}

.spec-item:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.spec-item:hover::before {
    background: var(--primary);
}

.spec-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-item strong {
    font-size: 0.92rem;
    color: var(--secondary);
}

.install-action {
    text-align: center;
    margin-bottom: 24px;
}

.btn-install {
    width: 100%;
    font-size: 1rem;
    padding: 14px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), #06b6d4);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
    transition: all 0.25s ease;
}

.btn-install:hover {
    background: linear-gradient(135deg, var(--primary-hover), #0891b2);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.5);
}

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

.install-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Instructions card styling */
.instructions-card {
    background: rgba(17, 24, 39, 0.45);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.instructions-card h4 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

.instruction-group ol {
    padding-left: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 6px;
    line-height: 1.5;
}

.instruction-group ol strong {
    color: var(--secondary);
}

/* Loader styling */
.loader-container {
    text-align: center;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-container {
    text-align: center;
    padding: 24px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error-icon {
    font-size: 2.2rem;
    margin-bottom: 5px;
}

.error-container h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
}

.error-container p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 12px;
}

/* ========================================================
   Responsive Media Queries
   ======================================================== */
@media(max-width: 900px) {
    .upload-stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media(max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0;
    }
    
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: row;
        gap: 16px;
        align-items: center;
    }
    
    .nav-link {
        display: none; /* Hide generic nav links to save vertical screen space on mobile */
    }
    
    .nav-auth {
        margin-left: 0;
        gap: 12px;
    }

    .btn-login {
        font-size: 0.8rem;
    }

    .btn-signup {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }
    
    .trust-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* Custom Dialog Modal Styles */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 440px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.modal-overlay:not(.hidden) .modal-card {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.modal-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon-wrapper.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.modal-icon-wrapper.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.modal-icon-wrapper.info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.modal-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

#modal-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--secondary);
}

#modal-message {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

#modal-close-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
}
