/* ── Dev-X: Dark Elegant Stylesheet ── */

:root {
    --color-bg: #08090a;
    --color-surface: #111213;
    --color-surface-hover: #1a1b1e;
    --color-text: #f1f3f5;
    --color-text-muted: #787c82;
    --color-border: #1e1f22;
    --color-accent: #3b82f6;
    --color-accent-hover: #60a5fa;
    --color-accent-glow: rgba(59,130,246,0.15);
    --color-danger: #ef4444;
    --color-success: #22c55e;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(59,130,246,0.1);
    --max-width: 1200px;
    --nav-height: 64px;
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection { background: var(--color-accent); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow { max-width: 720px; }
.container-tiny { max-width: 420px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(8,9,10,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: var(--nav-height);
}
.header-inner {
    display: flex; align-items: center;
    justify-content: space-between; height: 100%;
}
.logo {
    font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--color-text), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav-links { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-links a {
    padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.9rem; font-weight: 500; color: var(--color-text-muted);
    transition: all 0.2s;
}
.nav-links a:hover { background: var(--color-surface); color: var(--color-text); }
.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle-fixed {
    z-index: 115;
    position: fixed;
    top: 20px; right: 20px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--color-text); border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.nav-toggle.nav-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.nav-open span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
}
.nav-toggle.nav-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}
.main-content { flex: 1; }

/* Full-screen mobile nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 105;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.nav-overlay-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.nav-overlay-close:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.06);
}
.nav-overlay-open {
    pointer-events: all;
    opacity: 1;
}
.nav-overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(8, 9, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.nav-overlay-menu {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    padding: 80px 24px;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay-open .nav-overlay-menu {
    transform: translateY(0);
}
.nav-overlay-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-muted);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    text-align: center;
    width: 100%;
    max-width: 300px;
}
.nav-overlay-link:hover {
    color: var(--color-text);
    background: rgba(255,255,255,0.04);
}
.nav-overlay-divider {
    width: 40px;
    height: 1px;
    background: var(--color-border);
    margin: 12px 0;
}
.nav-overlay-logout { width: 100%; max-width: 300px; }
.nav-overlay-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    width: 100%;
}
.nav-overlay-logout-btn:hover {
    color: var(--color-danger);
    background: rgba(239,68,68,0.06);
}

@media (min-width: 641px) {
    .nav-overlay { display: none; }
}

/* ── Hero ── */
.hero {
    position: relative;
    padding: 128px 0 96px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse at center, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.hero h1 {
    position: relative;
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero h1 .accent {
    background: linear-gradient(135deg, #60a5fa, #a78bfa, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    position: relative;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 540px;
    margin: 0 auto 36px;
    line-height: 1.7;
}
.hero-actions {
    position: relative;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Sections ── */
.section { padding: 80px 0; }
.section-dark { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}
.section-actions { text-align: center; margin-top: 48px; }
.page-header { padding: 48px 0 0; }
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { color: var(--color-text-muted); }

/* About */
.about-text { text-align: center; }
.about-lead {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
    font-weight: 500;
}
.about-text > p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}
.about-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.about-stat { text-align: center; }
.about-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-accent), #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}
.about-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Feature cards */
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: all 0.3s ease;
}
.feature-card:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(59,130,246,0.1);
    color: var(--color-accent);
    margin-bottom: 16px;
}
.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* CTA section */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse at center, var(--color-accent-glow) 0%, transparent 70%);
    pointer-events: none;
}
.cta-section h2 {
    position: relative;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.cta-section p {
    position: relative;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}
.cta-section .btn {
    position: relative;
}

/* Grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: var(--radius-full);
    font-size: 0.9rem; font-weight: 500;
    border: 1px solid var(--color-border); background: transparent;
    cursor: pointer; transition: all 0.25s ease; text-align: center;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    color: #fff;
    box-shadow: 0 0 20px var(--color-accent-glow);
}
.btn-outline {
    border-color: var(--color-border);
    color: var(--color-text);
}
.btn-outline:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}
.btn-danger { border-color: var(--color-danger); color: var(--color-danger); }
.btn-danger:hover { background: var(--color-danger); color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.825rem; }
.btn-block { width: 100%; }

/* ── Cards ── */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}
.card:hover {
    border-color: rgba(59,130,246,0.2);
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.project-card { display: flex; flex-direction: column; }
.card-img {
    overflow: hidden;
    background: var(--color-bg);
    position: relative;
}
.card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
    opacity: 0;
    transition: opacity 0.3s;
}
.project-card:hover .card-img::after { opacity: 1; }
.card-img img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.project-card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.card-body p { font-size: 0.875rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 14px; flex: 1; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-body .tags { margin-top: 14px; }
.project-detail .tags { margin: 20px 0; }
.tag {
    display: inline-block; padding: 4px 12px; font-size: 0.75rem; font-weight: 500;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-text-muted);
}

/* Member cards */
.member-card { text-align: center; padding: 40px 24px; }
.avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; background: var(--color-bg); }
.avatar-lg { width: 120px; height: 120px; }
.member-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.role { font-size: 0.85rem; color: var(--color-text-muted); }

/* Social links */
.social-links { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.social-link {
    padding: 6px 14px; font-size: 0.8rem; border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--color-border);
    font-weight: 500; transition: all 0.2s;
}
.social-link:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

/* ── E-Business Card ── */
.ecard {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 48px 36px 36px;
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
    overflow: hidden;
}
.ecard-glow {
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(59,130,246,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.ecard-header { position: relative; }
.ecard-avatar-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}
.ecard-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}
.ecard-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    opacity: 0.3;
}
.ecard-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}
.ecard-role {
    font-size: 0.9rem;
    color: var(--color-accent);
    font-weight: 500;
}
.ecard-divider {
    width: 40px;
    height: 2px;
    background: var(--color-border);
    margin: 20px auto;
    border-radius: 2px;
}
.ecard-bio {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 0 8px;
}
.ecard-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}
.ecard-contact-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    transition: all 0.2s;
}
.ecard-contact-item:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
    background: rgba(59,130,246,0.05);
}
.ecard-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.ecard-social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.25s;
}
.ecard-social-link:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: rgba(59,130,246,0.08);
    transform: translateY(-2px);
}
.ecard-actions {
    position: relative;
    margin-bottom: 16px;
}
.ecard-footer-text {
    position: relative;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.5;
}

/* Project detail */
.project-detail h1 { font-size: 2rem; font-weight: 700; margin: 20px 0; }
.detail-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--color-border); }
.detail-body { font-size: 1rem; line-height: 1.8; }
.back-link { margin-bottom: 24px; display: inline-flex; }

/* ── Forms ── */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 500; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group textarea {
    padding: 12px 16px; border: 1px solid var(--color-border);
    border-radius: var(--radius-sm); font-family: var(--font-sans);
    font-size: 0.9rem; transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--color-surface); color: var(--color-text);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}
.form-group input[type="file"] { font-size: 0.85rem; }
.form-check { flex-direction: row; align-items: center; gap: 8px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--color-accent); }

/* Auth card */
.auth-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 40px 32px; margin-top: 24px; }
.auth-card h1 { font-size: 1.35rem; font-weight: 600; margin-bottom: 24px; text-align: center; }

.auth-alt { text-align: center; margin-top: 20px; font-size: 0.85rem; color: var(--color-text-muted); }
.auth-alt a { color: var(--color-accent); font-weight: 500; }
.auth-alt a:hover { text-decoration: underline; }

/* Error / Alert messages */
.error-msg { background: rgba(239,68,68,0.1); color: var(--color-danger); border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.875rem; margin-bottom: 16px; }
.alert-success { background: rgba(34,197,94,0.1); color: var(--color-success); border: 1px solid rgba(34,197,94,0.2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.875rem; margin-bottom: 16px; }
.error-list { margin-bottom: 24px; }

/* Admin table */
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
.admin-table th { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); }
.admin-table .actions { display: flex; gap: 8px; }
.inline-form { display: inline; }

/* Stat cards */
.stat-card { text-align: center; padding: 32px 20px; }
.stat-number { display: block; font-size: 2.5rem; font-weight: 700; color: var(--color-accent); margin-bottom: 4px; }
.stat-label { font-size: 0.875rem; color: var(--color-text-muted); }

/* Thumbnail preview */
.thumb-preview { width: 160px; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }

/* Image grid (admin) */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.image-grid-item {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.image-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-grid-delete {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(239,68,68,0.9);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.image-grid-delete:hover { background: var(--color-danger); }

/* Form hint */
.form-hint { font-size: 0.8rem; color: var(--color-text-muted); }

/* Project gallery (public) */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: border-color 0.2s;
}
.gallery-item:hover { border-color: rgba(59,130,246,0.3); }
.gallery-item img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.03); }

/* Empty state */
.empty-state { text-align: center; padding: 48px 0; color: var(--color-text-muted); }

/* Admin nav */
.admin-nav { display: flex; gap: 12px; margin-top: 16px; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--color-border); padding: 32px 0; margin-top: auto; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--color-text-muted); }
.footer-nav { display: flex; gap: 16px; }
.footer-nav a { color: var(--color-text-muted); }
.footer-nav a:hover { color: var(--color-text); }

/* ── Featured section background ── */
.featured-bg {
    position: relative;
}
.featured-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}

/* ── NFC Modal ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-dialog {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--color-border);
}
.modal-header h3 { font-size: 1.1rem; font-weight: 600; }
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.modal-close:hover { color: var(--color-text); }
.modal-body { padding: 24px; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    gap: 8px;
}

.nfc-card-info {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 20px;
}
.nfc-card-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.nfc-card-user > div {
    display: flex;
    flex-direction: column;
}
.nfc-card-user strong { font-size: 1rem; }
.nfc-card-user .text-muted { font-size: 0.85rem; color: var(--color-text-muted); }
.nfc-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
}
.nfc-details code {
    display: block;
    padding: 6px 10px;
    background: var(--color-bg);
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-accent);
    word-break: break-all;
    margin-top: 4px;
}
.nfc-divider {
    height: 1px;
    background: var(--color-border);
    margin: 20px 0;
}
.nfc-section { margin-bottom: 20px; }
.nfc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.nfc-label svg { color: var(--color-accent); flex-shrink: 0; }
.nfc-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}
.nfc-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: monospace;
    font-size: 0.8rem;
    resize: none;
}
.nfc-input-group {
    display: flex;
    gap: 0;
}
.nfc-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 0.85rem;
}
.nfc-copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.nfc-copy-btn:hover { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }

.nfc-write-section { text-align: center; }
.nfc-status {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 16px;
    text-align: center;
}
.nfc-status-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.2); color: var(--color-accent); }
.nfc-status-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); color: var(--color-success); }
.nfc-status-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: var(--color-danger); }
.nfc-platform-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .admin-nav { flex-wrap: wrap; }
    .page-header h1 { font-size: 1.6rem; }
    .about-stats { gap: 28px; }
}

@media (max-width: 640px) {
    .hero { padding: 64px 0 48px; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero::before { width: 300px; height: 300px; top: -30%; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 1.25rem; margin-bottom: 20px; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid { gap: 16px; }

    .container { padding: 0 16px; }

    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .about-lead { font-size: 1.1rem; }
    .about-stats { flex-direction: column; gap: 24px; margin-top: 32px; }

    .feature-card { padding: 24px 20px; }

    .ecard {
        padding: 32px 20px 28px;
    }
    .ecard-avatar { width: 80px; height: 80px; }
    .ecard-name { font-size: 1.25rem; }

    .card-body { padding: 16px; }
    .card-body h3 { font-size: 1rem; }

    .member-card { padding: 28px 16px; }

    .admin-table th, .admin-table td { padding: 8px 10px; font-size: 0.825rem; }
    .admin-table .actions { flex-direction: column; gap: 4px; }
    .admin-table .actions .btn { width: 100%; text-align: center; }

    .stat-card { padding: 24px 16px; }
    .stat-number { font-size: 2rem; }

    .auth-card { padding: 28px 20px; }
    .form-group input, .form-group textarea { font-size: 16px; }

    .cta-section h2 { font-size: 1.5rem; }
    .cta-section::before { width: 400px; height: 400px; }

    .project-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
    .detail-body { font-size: 0.9rem; }

    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }

    .modal-dialog { margin: 10px; max-height: 95vh; }
    .modal-header { padding: 16px 18px; }
    .modal-body { padding: 16px 18px; }
    .modal-footer { padding: 12px 18px; }
}
