* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0A0F1E 0%, #0B1120 100%);
    min-height: 100vh;
    color: #EFF3FC;
    position: relative;
    overflow-x: hidden;
}

.tech-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0,255,255,0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.glow-spot {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0,180,255,0.08) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    top: -20%;
    right: -10%;
}

.glow-spot-2 {
    bottom: -30%;
    left: -20%;
    top: auto;
    background: radial-gradient(circle, rgba(114,46,209,0.1) 0%, rgba(0,0,0,0) 70%);
}

.main {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    width: 100%;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.tagline {
    font-size: 1rem;
    color: #9ca3cf;
    background: rgba(0,0,0,0.3);
    display: inline-block;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #88aaff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: #8e9acf;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.card {
    background: rgba(18,25,45,0.65);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(0,255,255,0.2);
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, border-color 0.2s;
    overflow: hidden;
    width: 100%;
}

.card:hover {
    border-color: rgba(0,255,255,0.5);
    transform: translateY(-3px);
}

.card-header {
    padding: 1.5rem 1.8rem 1rem 1.8rem;
    border-bottom: 1px solid rgba(0,255,255,0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 i {
    color: #0ff;
    font-size: 1.4rem;
}

.card-header p {
    font-size: 0.8rem;
    color: #9ba7d0;
    margin-top: 6px;
}

.refresh-btn {
    background: rgba(0,255,255,0.2);
    border: 1px solid rgba(0,255,255,0.5);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    color: #0ff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.refresh-btn:active {
    transform: scale(0.95);
}

.card-body {
    padding: 1.8rem;
}

.upload-area {
    background: rgba(8,12,22,0.7);
    border: 2px dashed rgba(0,255,255,0.4);
    border-radius: 1.5rem;
    padding: 2.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    margin-bottom: 1.5rem;
}

.upload-area:active {
    transform: scale(0.98);
}

.upload-icon {
    font-size: 3.2rem;
    color: #0ff;
    margin-bottom: 1rem;
}

.upload-area p {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.upload-hint {
    font-size: 0.8rem;
    color: #8e9acf;
}

#fileInput {
    display: none;
}

.file-info {
    background: rgba(0,20,40,0.6);
    border-radius: 1.2rem;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid #0ff;
}

.file-info i {
    font-size: 2rem;
    color: #0ff;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    word-break: break-all;
}

.file-size {
    font-size: 0.7rem;
    color: #9ca3cf;
}

.btn-remove {
    background: none;
    border: none;
    color: #ff7e7e;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
}

.btn-remove:active {
    transform: scale(1.1);
}

.btn-primary {
    background: linear-gradient(95deg, #0066ff, #00ccff);
    border: none;
    width: 100%;
    padding: 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.share-result {
    background: rgba(0,20,35,0.7);
    border-radius: 1.2rem;
    padding: 1rem;
    margin-top: 1.8rem;
    border: 1px solid rgba(0,255,255,0.3);
}

.share-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8e9acf;
    margin-bottom: 0.5rem;
}

.code-display {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.code-box {
    display: flex;
    align-items: center;
    background: #010a14;
    border-radius: 1rem;
    padding: 0.2rem 0.2rem 0.2rem 1rem;
    border: 1px solid #2a3a55;
    justify-content: space-between;
    flex: 2;
    min-width: 180px;
}

#shareCode {
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #0ff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-copy {
    background: #1e2a44;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 0.8rem;
    color: white;
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-copy:active {
    background: #0ff;
    color: #000;
    transform: scale(0.95);
}

.qr-container {
    flex: 1;
    min-width: 100px;
    text-align: center;
    background: white;
    padding: 0.8rem;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.qr-container:active {
    transform: scale(0.98);
}

.qr-container img {
    width: 100px;
    height: 100px;
    display: block;
}

/* HAMSTER LOADER */
.hamster-loader {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    padding: 0.5rem;
}

.wheel-and-hamster {
    --dur: 1s;
    position: relative;
    width: 12em;
    height: 12em;
    font-size: 14px;
}

.wheel, .hamster, .hamster div, .spoke {
    position: absolute;
}

.wheel, .spoke {
    border-radius: 50%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.wheel {
    background: radial-gradient(100% 100% at center,hsla(0,0%,60%,0) 47.8%,hsl(0,0%,60%) 48%);
    z-index: 2;
}

.hamster {
    animation: hamster var(--dur) ease-in-out infinite;
    top: 50%;
    left: calc(50% - 3.5em);
    width: 7em;
    height: 3.75em;
    transform: rotate(4deg) translate(-0.8em,1.85em);
    transform-origin: 50% 0;
    z-index: 1;
}

.hamster__head {
    animation: hamsterHead var(--dur) ease-in-out infinite;
    background: hsl(30,90%,55%);
    border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
    box-shadow: 0 -0.25em 0 hsl(30,90%,80%) inset, 0.75em -1.55em 0 hsl(30,90%,90%) inset;
    top: 0;
    left: -2em;
    width: 2.75em;
    height: 2.5em;
    transform-origin: 100% 50%;
}

.hamster__ear {
    animation: hamsterEar var(--dur) ease-in-out infinite;
    background: hsl(0,90%,85%);
    border-radius: 50%;
    box-shadow: -0.25em 0 hsl(30,90%,55%) inset;
    top: -0.25em;
    right: -0.25em;
    width: 0.75em;
    height: 0.75em;
    transform-origin: 50% 75%;
}

.hamster__eye {
    animation: hamsterEye var(--dur) linear infinite;
    background-color: hsl(0,0%,0%);
    border-radius: 50%;
    top: 0.375em;
    left: 1.25em;
    width: 0.5em;
    height: 0.5em;
}

.hamster__nose {
    background: hsl(0,90%,75%);
    border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
    top: 0.75em;
    left: 0;
    width: 0.2em;
    height: 0.25em;
}

.hamster__body {
    animation: hamsterBody var(--dur) ease-in-out infinite;
    background: hsl(30,90%,90%);
    border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
    box-shadow: 0.1em 0.75em 0 hsl(30,90%,55%) inset, 0.15em -0.5em 0 hsl(30,90%,80%) inset;
    top: 0.25em;
    left: 2em;
    width: 4.5em;
    height: 3em;
    transform-origin: 17% 50%;
    transform-style: preserve-3d;
}

.hamster__limb--fr, .hamster__limb--fl {
    clip-path: polygon(0 0,100% 0,70% 80%,60% 100%,0% 100%,40% 80%);
    top: 2em;
    left: 0.5em;
    width: 1em;
    height: 1.5em;
    transform-origin: 50% 0;
}

.hamster__limb--fr {
    animation: hamsterFRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,80%) 80%,hsl(0,90%,75%) 80%);
    transform: rotate(15deg) translateZ(-1px);
}

.hamster__limb--fl {
    animation: hamsterFLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,90%) 80%,hsl(0,90%,85%) 80%);
    transform: rotate(15deg);
}

.hamster__limb--br, .hamster__limb--bl {
    border-radius: 0.75em 0.75em 0 0;
    clip-path: polygon(0 0,100% 0,100% 30%,70% 90%,70% 100%,30% 100%,40% 90%,0% 30%);
    top: 1em;
    left: 2.8em;
    width: 1.5em;
    height: 2.5em;
    transform-origin: 50% 30%;
}

.hamster__limb--br {
    animation: hamsterBRLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,80%) 90%,hsl(0,90%,75%) 90%);
    transform: rotate(-25deg) translateZ(-1px);
}

.hamster__limb--bl {
    animation: hamsterBLLimb var(--dur) linear infinite;
    background: linear-gradient(hsl(30,90%,90%) 90%,hsl(0,90%,85%) 90%);
    transform: rotate(-25deg);
}

.hamster__tail {
    animation: hamsterTail var(--dur) linear infinite;
    background: hsl(0,90%,85%);
    border-radius: 0.25em 50% 50% 0.25em;
    box-shadow: 0 -0.2em 0 hsl(0,90%,75%) inset;
    top: 1.5em;
    right: -0.5em;
    width: 1em;
    height: 0.5em;
    transform: rotate(30deg) translateZ(-1px);
    transform-origin: 0.25em 0.25em;
}

.spoke {
    animation: spoke var(--dur) linear infinite;
    background: radial-gradient(100% 100% at center,hsl(0,0%,60%) 4.8%,hsla(0,0%,60%,0) 5%),
                linear-gradient(hsla(0,0%,55%,0) 46.9%,hsl(0,0%,65%) 47% 52.9%,hsla(0,0%,65%,0) 53%) 50% 50% / 99% 99% no-repeat;
}

@keyframes hamster {
    from, to { transform: rotate(4deg) translate(-0.8em,1.85em); }
    50% { transform: rotate(0) translate(-0.8em,1.85em); }
}

@keyframes hamsterHead {
    from, 25%, 50%, 75%, to { transform: rotate(0); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(8deg); }
}

@keyframes hamsterEye {
    from, 90%, to { transform: scaleY(1); }
    95% { transform: scaleY(0); }
}

@keyframes hamsterEar {
    from, 25%, 50%, 75%, to { transform: rotate(0); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(12deg); }
}

@keyframes hamsterBody {
    from, 25%, 50%, 75%, to { transform: rotate(0); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-2deg); }
}

@keyframes hamsterFRLimb {
    from, 25%, 50%, 75%, to { transform: rotate(50deg) translateZ(-1px); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-30deg) translateZ(-1px); }
}

@keyframes hamsterFLLimb {
    from, 25%, 50%, 75%, to { transform: rotate(-30deg); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); }
}

@keyframes hamsterBRLimb {
    from, 25%, 50%, 75%, to { transform: rotate(-60deg) translateZ(-1px); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(20deg) translateZ(-1px); }
}

@keyframes hamsterBLLimb {
    from, 25%, 50%, 75%, to { transform: rotate(20deg); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-60deg); }
}

@keyframes hamsterTail {
    from, 25%, 50%, 75%, to { transform: rotate(30deg) translateZ(-1px); }
    12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(10deg) translateZ(-1px); }
}

@keyframes spoke {
    from { transform: rotate(0); }
    to { transform: rotate(-1turn); }
}

.input-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.6rem;
    width: 100%;
    flex-wrap: nowrap;
}

.input-group input {
    flex: 1;
    min-width: 0;
    background: #010a18;
    border: 1px solid #2a3f5e;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    color: white;
    font-family: monospace;
    font-size: 1rem;
    outline: none;
    text-transform: uppercase;
}

.input-group input:focus {
    border-color: #0ff;
}

.btn-secondary {
    background: rgba(0,255,255,0.12);
    border: 1px solid rgba(0,255,255,0.5);
    border-radius: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-secondary:active {
    background: rgba(0,255,255,0.3);
    transform: scale(0.98);
}

/* File view page */
.file-view-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 1rem;
}

.file-preview-card {
    background: rgba(18,25,45,0.85);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(0,255,255,0.3);
    overflow: hidden;
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

.preview-header-large {
    background: linear-gradient(135deg, rgba(0,100,150,0.2) 0%, rgba(0,0,0,0.3) 100%);
    padding: 1.2rem 2rem;
    border-bottom: 1px solid rgba(0,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.file-title {
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    word-break: break-word;
}

.file-title i {
    color: #0ff;
    font-size: 1.6rem;
    text-shadow: 0 0 5px #0ff;
}

.file-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #9ca3cf;
}

.file-meta span i {
    margin-right: 4px;
}

.btn-back-home {
    background: rgba(0,0,0,0.5);
    border: 1px solid #0ff;
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    color: #0ff;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-back-home:hover {
    background: rgba(0,255,255,0.2);
}

.btn-back-home:active {
    transform: scale(0.95);
}

.preview-body {
    padding: 2rem;
    min-height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(145deg, #03070f, #01030a);
}

.preview-frame-full {
    width: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.preview-frame-full iframe {
    width: 100%;
    height: 550px;
    border: none;
}

.preview-image-full {
    max-width: 100%;
    max-height: 550px;
    object-fit: contain;
    border-radius: 1rem;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.audio-player-custom, .video-player-custom {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 1rem;
}

audio, video {
    width: 100%;
    border-radius: 0.5rem;
    outline: none;
    display: block;
    margin: 0 auto;
}

video {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
}

.preview-unsupported-full {
    text-align: center;
    padding: 4rem 2rem;
    color: #b0c4ff;
}

.download-btn-large {
    background: linear-gradient(90deg, #0066ff, #00ccff);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.download-btn-large:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,200,255,0.3);
}

.download-btn-large:active {
    transform: scale(0.98);
}

.footer {
    position: relative;
    z-index: 2;
    background: rgba(5,8,18,0.85);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0,255,255,0.15);
    padding: 2rem 1.5rem 1.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-brand .logo i {
    font-size: 1.8rem;
    color: #0ff;
}

.footer-brand .logo h3 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #88DDFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-brand p {
    color: #8e9acf;
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 350px;
}

.footer-contact {
    min-width: 200px;
}

.footer-contact h4 {
    color: #0ff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-contact a {
    display: block;
    color: #9ca3cf;
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
}

.footer-contact a:hover {
    color: #0ff;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: #9ca3cf;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #0ff;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0,255,255,0.1);
    font-size: 0.75rem;
    color: #6e7a9e;
}

.toast-msg {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #0a1f2e;
    backdrop-filter: blur(12px);
    padding: 0.7rem 1.5rem;
    border-radius: 40px;
    border-left: 4px solid #0ff;
    font-size: 0.9rem;
    z-index: 1000;
    color: #ccf;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.error-message {
    color: #ff9f8f;
    font-size: 0.85rem;
    margin-top: 0.8rem;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(255,80,80,0.08);
    display: none;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    margin-left: 10px;
}

.status-online {
    background: rgba(0,255,0,0.2);
    color: #0f0;
}

.status-offline {
    background: rgba(255,0,0,0.2);
    color: #f00;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0,255,255,0.3);
    border-top-color: #0ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Modal QR */
.qr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.qr-modal-content {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    text-align: center;
    max-width: 90%;
    width: 350px;
}

.qr-modal-content img {
    width: 250px;
    height: 250px;
    margin: 1rem 0;
}

.qr-modal-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.qr-modal-content p {
    color: #666;
    font-size: 0.85rem;
    word-break: break-all;
}

.close-modal {
    background: #0066ff;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    cursor: pointer;
    margin-top: 1rem;
    font-size: 1rem;
}

.close-modal:active {
    transform: scale(0.95);
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(18,25,45,0.85);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(0,255,255,0.3);
    text-align: center;
}

.stat-card i {
    font-size: 2.5rem;
    color: #0ff;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #0ff;
}

.storage-warning {
    color: #ffaa00;
    font-size: 0.8rem;
    margin-top: 5px;
}

.admin-table {
    background: rgba(18,25,45,0.85);
    backdrop-filter: blur(12px);
    border-radius: 1rem;
    padding: 1.5rem;
    overflow-x: auto;
}

.admin-table table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, .admin-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0,255,255,0.2);
}

.admin-table th {
    color: #0ff;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.qr-small-btn, .view-btn, .delete-btn {
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    border: none;
    color: white;
}

.qr-small-btn {
    background: #00aaff;
}

.view-btn {
    background: #00aaff;
}

.delete-btn {
    background: #ff4444;
}

.qr-small-btn:active, .view-btn:active, .delete-btn:active {
    transform: scale(0.95);
}

.login-form {
    max-width: 400px;
    margin: 100px auto;
    background: rgba(18,25,45,0.95);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(0,255,255,0.3);
}

.login-form input {
    width: 100%;
    padding: 0.8rem;
    margin: 1rem 0;
    background: #010a18;
    border: 1px solid #2a3f5e;
    border-radius: 0.5rem;
    color: white;
    font-size: 1rem;
}

.login-form button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(95deg, #0066ff, #00ccff);
    border: none;
    border-radius: 0.5rem;
    color: white;
    cursor: pointer;
    font-size: 1rem;
}

.login-form button:active {
    transform: scale(0.98);
}

.logout-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,68,68,0.9);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
}

.logout-btn:active {
    transform: scale(0.95);
}

.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.6);
    padding: 8px 15px;
    border-radius: 20px;
    z-index: 100;
}

.admin-link a {
    color: #0ff;
    text-decoration: none;
    font-size: 0.8rem;
}

/* Admin File Viewer Modal */
.admin-file-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.admin-file-modal-content {
    background: linear-gradient(135deg, #0A0F1E 0%, #0B1120 100%);
    border-radius: 1.5rem;
    max-width: 90%;
    width: 1000px;
    max-height: 90vh;
    overflow: auto;
    border: 1px solid rgba(0,255,255,0.5);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.admin-file-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,255,255,0.2);
    background: rgba(0,0,0,0.3);
}

.admin-file-modal-header h3 {
    color: #0ff;
    font-size: 1.2rem;
    word-break: break-all;
}

.admin-file-modal-body {
    padding: 2rem;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #03070f;
}

.admin-file-modal-footer {
    padding: 1rem;
    border-top: 1px solid rgba(0,255,255,0.2);
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.close-modal-btn {
    background: #ff4444;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

.download-modal-btn {
    background: linear-gradient(95deg, #0066ff, #00ccff);
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 2rem;
    color: white;
    cursor: pointer;
    font-weight: 500;
}

/* Mobile viewer modal */
.mobile-viewer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 20000;
    flex-direction: column;
}

.mobile-viewer-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-viewer-header h3 {
    font-size: 1rem;
    word-break: break-all;
    flex: 1;
}

.mobile-viewer-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    padding: 20px;
}

.mobile-viewer-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.mobile-viewer-content iframe {
    width: 100%;
    height: 80vh;
    border: none;
}

.mobile-viewer-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #111;
}

.mobile-viewer-footer button {
    padding: 12px 24px;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
}

.mobile-download-btn {
    background: linear-gradient(95deg, #0066ff, #00ccff);
    color: white;
}

.mobile-close-btn {
    background: #ff4444;
    color: white;
}

@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    .preview-frame-full iframe {
        height: 380px;
    }
    .preview-image-full {
        max-height: 380px;
    }
    .qr-container img {
        width: 80px;
        height: 80px;
    }
    .preview-header-large {
        flex-direction: column;
        align-items: stretch;
    }
    .file-title {
        font-size: 1.1rem;
    }
    .file-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 600px) {
    .main {
        padding: 1rem;
    }
    .hero h2 {
        font-size: 1.4rem;
    }
    .input-group {
        flex-direction: column;
    }
    .btn-secondary {
        width: 100%;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .btn-back-home, .download-btn-large {
        justify-content: center;
    }
    .qr-container img {
        width: 70px;
        height: 70px;
    }
    .action-buttons {
        flex-direction: row;
        gap: 8px;
    }
    .qr-small-btn, .view-btn, .delete-btn {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .admin-file-modal-content {
        width: 95%;
        max-height: 85vh;
    }
    .admin-file-modal-body {
        padding: 1rem;
    }
    .wheel-and-hamster {
        transform: scale(0.7);
    }
}
