/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #ef4584;
    --primary-dark: #b82159;
    --primary-light: #ede9ff;
    --accent: #ff6b35;
    --text: #1a1a2e;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f4f5f9;
    --white: #ffffff;
    --card-shadow: 0 2px 12px rgba(0,0,0,.07);
    --card-shadow-hover: 0 12px 32px rgba(108,59,255,.18);
    --radius: 14px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 15px; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }

.logo { font-size: 1.35rem; font-weight: 800; color: var(--primary); display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; }
.logo svg { flex-shrink: 0; }
.logo:hover { color: var(--primary-dark); }

.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a { padding: 7px 15px; border-radius: 20px; color: var(--text-muted); font-weight: 500; font-size: 0.88rem; transition: background .15s, color .15s; }
.main-nav a:hover { background: var(--primary-light); color: var(--primary); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); margin-left: auto; padding: 4px; }

.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 16px; z-index: 99; flex-direction: column; gap: 2px; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text); font-weight: 500; font-size: 0.9rem; }
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }

/* ===== HERO ===== */
.hero { background:linear-gradient(135deg, #ef4584 0%, #ea387a 50%, #d82165 100%); color: white; padding: 64px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
.hero .container { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 5px 14px; font-size: 0.8rem; font-weight: 600; margin-bottom: 20px; backdrop-filter: blur(4px); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; margin-bottom: 14px; letter-spacing: -1.5px; line-height: 1.1; }
.hero p { font-size: 1.05rem; opacity: .85; max-width: 440px; margin: 0 auto; }

/* ===== SECTIONS ===== */
.section { padding: 44px 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.section-title svg { color: var(--primary); }
.view-all { font-size: 0.82rem; color: var(--primary); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.view-all:hover { text-decoration: underline; }

/* ===== RINGTONE CARDS ===== */
.ringtone-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }

/* Card shell */
.rc { background: var(--white); border-radius: 16px; overflow: hidden; border: 1.5px solid var(--border); display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s; }
.rc:hover { border-color: rgba(108,59,255,.35); box-shadow: 0 12px 36px rgba(0,0,0,.10), 0 2px 8px rgba(108,59,255,.1); transform: translateY(-4px); }
.rc[data-playing="1"] { border-color: rgba(108,59,255,.5); box-shadow: 0 8px 28px rgba(108,59,255,.18); transform: translateY(-2px); }

/* Banner */
.rc-banner { height: 88px; position: relative; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }

/* Soft circle decorations */
.rc-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.18); }
.rc-circle-tr { width: 80px; height: 80px; top: -20px; right: -20px; }
.rc-circle-bl { width: 64px; height: 64px; bottom: -24px; left: -12px; opacity: .12; }

/* Center area: music note / waveform */
.rc-center { position: relative; z-index: 1; }
.rc-note { width: 36px; height: 36px; color: rgba(255,255,255,.35); display: block; }
.rc-wave { display: none; align-items: center; gap: 3px; height: 28px; }
.rc[data-playing="1"] .rc-note { display: none; }
.rc[data-playing="1"] .rc-wave { display: flex; }

/* Waveform bars */
.rc-wave span {
    display: block; width: 3px; border-radius: 99px;
    background: rgba(255,255,255,.85);
    height: calc(var(--h) * 28px);
    transform-origin: center;
    animation: rcBar .6s ease-in-out var(--d) infinite alternate;
}
@keyframes rcBar { 0% { transform: scaleY(.25); } 100% { transform: scaleY(1); } }

/* Category badge */
.rc-cat { position: absolute; bottom: 8px; left: 10px; background: rgba(0,0,0,.28); color: white; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; z-index: 2; transition: background .15s; line-height: 1.6; }
.rc-cat:hover { background: rgba(0,0,0,.45); color: white; }

/* Duration badge */
.rc-dur { position: absolute; bottom: 9px; right: 52px; color: rgba(255,255,255,.82); font-size: 10px; font-weight: 500; z-index: 2; }

/* Play button — right center */
.rc-play {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center;
    z-index: 3; transition: background .15s, transform .15s, box-shadow .15s;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
}
.rc-play:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.rc-play .ico-play  { color: var(--c1, #6c3bff); display: block; margin-left: 2px; }
.rc-play .ico-pause { color: var(--c1, #6c3bff); display: none; }
.rc[data-playing="1"] .rc-play .ico-play  { display: none; }
.rc[data-playing="1"] .rc-play .ico-pause { display: block; }

/* Body */
.rc-body { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; gap: 10px; }

.rc-title { font-size: 0.88rem; font-weight: 600; color: var(--text); line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; transition: color .15s; }
.rc-title:hover { color: var(--primary); }
.rc[data-playing="1"] .rc-title { color: var(--primary); }

/* Stats row */
.rc-stats { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rc-stats span { display: flex; align-items: center; gap: 4px; font-size: 11px; color: #9ca3af; }
.rc-stats svg { width: 11px; height: 11px; flex-shrink: 0; }

/* Download button */
.rc-dl { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 0; border-radius: 8px; color: white; font-size: 12px; font-weight: 700; text-decoration: none; transition: opacity .15s, transform .15s; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.rc-dl:hover { opacity: .88; transform: translateY(-1px); color: white; }

/* ===== CATEGORY CARDS ===== */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.category-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 14px; text-align: center; transition: border-color .15s, box-shadow .15s, transform .15s; display: block; color: var(--text); }
.category-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light), 0 4px 12px rgba(108,59,255,.12); transform: translateY(-2px); color: var(--primary); }
.cat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; color: var(--primary); transition: background .15s; }
.category-card:hover .cat-icon { background: var(--primary); color: white; }
.cat-name { font-weight: 700; font-size: 0.88rem; margin-bottom: 3px; }
.cat-count { font-size: 0.75rem; color: var(--text-muted); }

/* ===== TAG CLOUD ===== */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; gap: 4px; background: var(--white); border: 1.5px solid var(--border); color: var(--text-muted); font-size: 0.78rem; font-weight: 500; padding: 5px 12px; border-radius: 20px; transition: all .15s; }
.tag:hover, .tag.active { background: var(--primary); border-color: var(--primary); color: white; }
.tag-lg { font-size: 0.85rem; padding: 6px 16px; }

/* ===== DETAIL PAGE (ringtone.php) ===== */
.rd-breadcrumb-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 12px 0; }
.rd-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

/* Hero banner */
.rd-hero { border-radius: 16px; overflow: hidden; height: 200px; position: relative; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.rd-hero-circle { position: absolute; border-radius: 50%; background: rgba(255,255,255,.15); }
.rd-hero-c1 { width: 200px; height: 200px; top: -60px; right: -60px; }
.rd-hero-c2 { width: 140px; height: 140px; bottom: -50px; left: -40px; opacity: .1; }
.rd-hero-c3 { width: 80px; height: 80px; top: 20px; left: 30%; opacity: .08; }
.rd-hero-center { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.rd-hero-note { color: rgba(255,255,255,.35); display: block; }
.rd-hero-wave { display: none; align-items: center; gap: 4px; height: 56px; }
.rd-hero-wave span { display: block; width: 4px; border-radius: 99px; background: rgba(255,255,255,.85); height: calc(var(--h)*56px); transform-origin: center; animation: rcBar .6s ease-in-out var(--d) infinite alternate; }
.rd-hero-cat { position: absolute; bottom: 14px; left: 16px; background: rgba(0,0,0,.28); color: white; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; display: flex; align-items: center; gap: 5px; transition: background .15s; }
.rd-hero-cat:hover { background: rgba(0,0,0,.45); color: white; }

/* Main card */
.rd-card { background: var(--white); border-radius: 16px; box-shadow: var(--card-shadow); padding: 28px; }
.rd-title { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 22px; line-height: 1.25; }

/* Custom audio player */
.rd-player { background: var(--bg); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px; border: 1.5px solid var(--border); }
.rd-progress-wrap { cursor: pointer; padding: 10px 0; margin-bottom: 4px; }
.rd-progress-track { height: 5px; background: var(--border); border-radius: 99px; position: relative; }
.rd-progress-fill { height: 100%; border-radius: 99px; background: var(--primary); transition: width .1s linear; }
.rd-progress-thumb { position: absolute; top: 50%; width: 14px; height: 14px; background: var(--primary); border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 0 3px rgba(108,59,255,.2); transition: left .1s linear; }
.rd-progress-wrap:hover .rd-progress-thumb { transform: translate(-50%,-50%) scale(1.3); }
.rd-time-row { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 16px; }
.rd-controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.rd-ctrl-btn { background: none; border: none; cursor: pointer; color: var(--text-muted); display: flex; align-items: center; justify-content: center; padding: 6px; border-radius: 8px; transition: color .15s, background .15s; }
.rd-ctrl-btn:hover { color: var(--primary); background: var(--primary-light); }
.rd-play-btn { width: 54px; height: 54px; border-radius: 50%; background: var(--primary); color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(108,59,255,.4); transition: background .15s, transform .15s, box-shadow .15s; }
.rd-play-btn:hover { background: var(--primary-dark); transform: scale(1.07); box-shadow: 0 8px 24px rgba(108,59,255,.5); }
.rd-ico-play { margin-left: 3px; }

/* Download button */
.rd-download { display: flex; align-items: center; justify-content: center; gap: 10px; color: white; font-size: 1rem; font-weight: 800; padding: 16px; border-radius: 12px; text-decoration: none; margin-bottom: 24px; transition: opacity .15s, transform .15s; box-shadow: 0 6px 20px rgba(0,0,0,.18); letter-spacing: .3px; }
.rd-download:hover { opacity: .9; transform: translateY(-2px); color: white; box-shadow: 0 10px 28px rgba(0,0,0,.22); }
.rd-dl-size { background: rgba(255,255,255,.22); border-radius: 20px; padding: 2px 10px; font-size: 0.78rem; font-weight: 600; }

/* Info pills grid */
.rd-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.rd-info-pill { display: flex; align-items: center; gap: 12px; background: var(--bg); border-radius: 12px; padding: 12px 14px; border: 1.5px solid var(--border); transition: border-color .15s, box-shadow .15s; }
.rd-info-pill:hover { border-color: rgba(108,59,255,.25); box-shadow: 0 2px 10px rgba(108,59,255,.08); }
.rd-info-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; }
.rd-info-text { min-width: 0; }
.rd-info-text span { display: block; font-size: 0.7rem; color: var(--text-muted); font-weight: 500; margin-bottom: 2px; }
.rd-info-text strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Section labels */
.rd-section-label { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.rd-section-label svg { color: var(--primary); }

/* Tags section */
.rd-tags-section { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }

/* Description */
.rd-description p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.8; }

/* Sidebar */
.rd-sidebar {}
.sidebar-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 18px; margin-bottom: 16px; }
.sidebar-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 14px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.sidebar-card h3 svg { color: var(--primary); flex-shrink: 0; }

.related-list { display: flex; flex-direction: column; gap: 4px; }
.related-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; transition: background .15s; }
.related-item:hover { background: var(--bg); }
.related-play { width: 32px; height: 32px; border-radius: 50%; color: white; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: opacity .15s, transform .12s; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.related-play:hover { opacity: .85; transform: scale(1.1); }
.related-info { flex: 1; min-width: 0; }
.related-info a { font-size: 0.82rem; font-weight: 600; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.related-info a:hover { color: var(--primary); }
.related-info span { font-size: 0.72rem; color: var(--text-muted); }
.related-dl { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border); color: var(--text-muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .15s; }
.related-dl:hover { background: var(--primary); border-color: var(--primary); color: white; }

/* Responsive */
@media (max-width: 860px) {
    .rd-layout { grid-template-columns: 1fr; }
    .rd-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 540px) {
    .rd-sidebar { grid-template-columns: 1fr; }
    .rd-info-grid { grid-template-columns: 1fr; }
    .rd-hero { height: 150px; }
    .rd-card { padding: 18px; }
    .rd-title { font-size: 1.25rem; }
}

/* ===== PAGE HEADER ===== */
.page-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 28px 0; margin-bottom: 32px; }
.page-header h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.page-header p { color: var(--text-muted); font-size: 0.88rem; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--primary); }
.breadcrumb svg { opacity: .4; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.page-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--white); border: 1.5px solid var(--border); color: var(--text); font-size: 0.85rem; font-weight: 600; transition: all .15s; }
.page-link:hover, .page-link.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== EMPTY STATE ===== */
.empty-state { text-align: center; padding: 72px 20px; color: var(--text-muted); }
.empty-state svg { margin: 0 auto 16px; opacity: .3; }
.empty-state p { font-size: 0.95rem; }

/* ===== ALERTS ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ===== FOOTER ===== */
.site-footer { background: #0d0d0d; color: #94a3b8; margin-top: 72px; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-logo { color: white; font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.site-footer p { font-size: 0.83rem; line-height: 1.75; }
.site-footer h4 { color: #e2e8f0; font-size: 0.82rem; margin-bottom: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { color: #d7d7d7; font-size: 0.83rem; transition: color .15s; }
.site-footer ul a:hover { color: white; }
.site-footer .tag { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); color: #d7d7d7; }
.site-footer .tag:hover { background: var(--primary); border-color: var(--primary); color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; text-align: center; font-size: 0.78rem; color: #858585; }

/* ===== ADMIN ===== */
.admin-body { background: #f1f5f9; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
.admin-header { background: var(--primary); color: white; padding: 0; position: sticky; top: 0; z-index: 100; }
.admin-header .inner { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; }
.admin-header .logo { color: white; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.admin-header nav { margin-left: auto; display: flex; gap: 4px; }
.admin-header nav a { color: rgba(255,255,255,.75); padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; }
.admin-header nav a:hover, .admin-header nav a.active { background: rgba(255,255,255,.15); color: white; }
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 28px 16px; }
.admin-card { background: white; border-radius: var(--radius); box-shadow: var(--card-shadow); padding: 24px; margin-bottom: 24px; }
.admin-card h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: 0.76rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 2px solid var(--border); }
.admin-table td { padding: 11px 12px; font-size: 0.86rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 0.84rem; font-weight: 600; cursor: pointer; border: none; transition: background .15s, opacity .15s; text-decoration: none; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; color: white; }
.btn-sm { padding: 5px 10px; font-size: 0.76rem; }
.btn-secondary { background: var(--border); color: var(--text); }
.btn-secondary:hover { background: #d1d5db; color: var(--text); }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 0.83rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-control { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text); background: white; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.form-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: white; border-radius: var(--radius); padding: 20px; box-shadow: var(--card-shadow); display: flex; align-items: center; gap: 14px; }
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-light); display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.stat-card .num { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .label { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); }
.login-card { background: white; border-radius: var(--radius); padding: 36px; width: 100%; max-width: 360px; box-shadow: 0 24px 64px rgba(0,0,0,.25); }
.login-card h1 { font-size: 1.35rem; font-weight: 800; margin-bottom: 24px; color: var(--text); text-align: center; }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--primary); font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
.footer-grid { grid-template-columns: 1fr 1fr; }
    .ringtone-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .admin-header nav { display: none; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .hero { padding: 40px 0 36px; }

    .ringtone-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-banner { height: 68px; }
}
