/* ============================================================
   SmartCloud — Design System
   Inspired by Dropbox & Apple: confident, airy, zero shadows
   ============================================================ */

/* --- Tokens --- */
:root {
    --surface:     #ffffff;
    --surface-alt: #f7f7f8;
    --surface-hover: #f0f0f2;
    --text:        #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #aeaeb2;
    --accent:      #0061ff;
    --accent-hover: #0052d9;
    --accent-soft:  rgba(0, 97, 255, 0.08);
    --accent-text:  #0061ff;
    --border:      #e5e5e7;
    --danger:      #ff3b30;
    --danger-soft:  rgba(255, 59, 48, 0.08);
    --success:     #30d158;
    --success-soft: rgba(48, 209, 88, 0.08);
    --warning:     #ff9f0a;
    --warning-soft: rgba(255, 159, 10, 0.08);
    --overlay:     rgba(0, 0, 0, 0.4);
    --radius:      10px;
    --radius-sm:   6px;
    --radius-full: 9999px;
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono:   'SF Mono', SFMono-Regular, ui-monospace, Menlo, monospace;
    --transition:  180ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

.dark {
    --surface:     #1c1c1e;
    --surface-alt: #2c2c2e;
    --surface-hover: #3a3a3c;
    --text:        #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #636366;
    --accent:      #0a84ff;
    --accent-hover: #409cff;
    --accent-soft:  rgba(10, 132, 255, 0.15);
    --accent-text:  #409cff;
    --border:      #38383a;
    --danger:      #ff453a;
    --danger-soft:  rgba(255, 69, 58, 0.15);
    --success:     #30d158;
    --success-soft: rgba(48, 209, 88, 0.15);
    --warning:     #ff9f0a;
    --warning-soft: rgba(255, 159, 10, 0.15);
    --overlay:     rgba(0, 0, 0, 0.6);
}

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

body {
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; color: inherit; }
input, select, textarea { font-family: var(--font); font-size: 14px; color: var(--text); }
input:focus, select:focus, textarea:focus { outline: none; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; }

/* --- Utility: Layout --- */
.h-full { height: 100%; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-xs { max-width: 20rem; }
.max-w-2xl { max-width: 42rem; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline { display: inline; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }

.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* --- Utility: Spacing --- */
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-auto { margin-left: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* --- Utility: Typography --- */
.text-xs   { font-size: 12px; line-height: 16px; }
.text-sm   { font-size: 13px; line-height: 20px; }
.text-base { font-size: 14px; line-height: 22px; }
.text-lg   { font-size: 16px; line-height: 24px; }
.text-xl   { font-size: 20px; line-height: 28px; }
.text-2xl  { font-size: 24px; line-height: 32px; }
.text-3xl  { font-size: 30px; line-height: 36px; }

.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wide  { letter-spacing: 0.05em; }
.leading-none  { line-height: 1; }
.text-center   { text-align: center; }
.text-right    { text-align: right; }
.text-left     { text-align: left; }
.truncate      { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-nowrap { white-space: nowrap; }
.uppercase     { text-transform: uppercase; }
.underline     { text-decoration: underline; }
.no-underline  { text-decoration: none; }
.font-sans     { font-family: var(--font); }
.font-mono     { font-family: var(--font-mono); }
.antialiased   { -webkit-font-smoothing: antialiased; }

/* --- Utility: Colors --- */
.bg-surface      { background-color: var(--surface); }
.bg-surface-alt  { background-color: var(--surface-alt); }
.bg-white        { background-color: #fff; }
.text-text       { color: var(--text); }
.text-secondary  { color: var(--text-secondary); }
.text-tertiary   { color: var(--text-tertiary); }
.text-white      { color: #fff; }
.text-accent     { color: var(--accent-text); }
.text-danger     { color: var(--danger); }
.bg-accent       { background-color: var(--accent); }
.bg-accent-soft  { background-color: var(--accent-soft); }
.bg-danger-soft  { background-color: var(--danger-soft); }
.bg-success-soft { background-color: var(--success-soft); }
.bg-warning-soft { background-color: var(--warning-soft); }
.text-success    { color: var(--success); }
.text-warning    { color: var(--warning); }
.border-border   { border-color: var(--border); }

/* Dark mode aliases for Blade classes */
.dark .bg-surface-dark  { background-color: var(--surface); }
.dark .text-text-dark   { color: var(--text); }
.dark .border-border-dark { border-color: var(--border); }
.dark .dark\:bg-surface-dark { background-color: var(--surface); }
.dark .dark\:text-text-dark  { color: var(--text); }
.dark .dark\:border-border-dark { border-color: var(--border); }
.dark .dark\:bg-red-900\/20 { background-color: var(--danger-soft); }
.dark .dark\:text-red-400    { color: var(--danger); }
.dark .dark\:text-text-dark\/60 { color: var(--text-secondary); }
.dark .dark\:bg-gray-800 { background-color: var(--surface-alt); }
.dark .dark\:bg-gray-700 { background-color: var(--surface-hover); }
.dark .dark\:text-gray-300 { color: var(--text-secondary); }
.dark .dark\:text-gray-400 { color: var(--text-tertiary); }
.dark .dark\:hover\:bg-gray-700:hover { background-color: var(--surface-hover); }
.dark .dark\:bg-green-900\/20 { background-color: var(--success-soft); }
.dark .dark\:text-green-400 { color: var(--success); }

/* Legacy color class mappings */
.text-text\/60        { color: var(--text-secondary); }
.text-text-dark\/60   { color: var(--text-secondary); }
.bg-accent\/10        { background-color: var(--accent-soft); }
.bg-accent\/90, .hover\:bg-accent\/90:hover { background-color: var(--accent-hover); }
.bg-red-50            { background-color: var(--danger-soft); }
.text-red-600         { color: var(--danger); }
.bg-green-50          { background-color: var(--success-soft); }
.text-green-600       { color: var(--success); }
.bg-yellow-50         { background-color: var(--warning-soft); }
.text-yellow-600      { color: var(--warning); }
.bg-gray-50           { background-color: var(--surface-alt); }
.bg-gray-100          { background-color: var(--surface-alt); }
.bg-gray-200          { background-color: var(--border); }
.text-gray-400        { color: var(--text-tertiary); }
.text-gray-500        { color: var(--text-secondary); }
.text-gray-600        { color: var(--text-secondary); }
.text-gray-700        { color: var(--text); }

/* --- Utility: Borders --- */
.border   { border: 1px solid var(--border); }
.border-b { border-bottom: 1px solid var(--border); }
.border-t { border-top: 1px solid var(--border); }
.border-l { border-left: 1px solid var(--border); }
.border-transparent { border-color: transparent; }
.rounded      { border-radius: var(--radius-sm); }
.rounded-sm   { border-radius: 4px; }
.rounded-md   { border-radius: var(--radius); }
.rounded-lg   { border-radius: 12px; }
.rounded-xl   { border-radius: 16px; }
.rounded-full { border-radius: var(--radius-full); }

/* --- Utility: Position & Overflow --- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.inset-0  { inset: 0; }
.top-0    { top: 0; }
.right-0  { right: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.overflow-auto   { overflow: auto; }
.overflow-y-auto { overflow-y: auto; }

/* --- Utility: Sizing --- */
.w-4  { width: 1rem; }
.w-5  { width: 1.25rem; }
.w-6  { width: 1.5rem; }
.w-8  { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-48 { width: 12rem; }
.w-64 { width: 16rem; }
.h-4  { height: 1rem; }
.h-5  { height: 1.25rem; }
.h-6  { height: 1.5rem; }
.h-8  { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }

/* --- Utility: Opacity & Cursor --- */
.opacity-0   { opacity: 0; }
.opacity-50  { opacity: 0.5; }
.opacity-100 { opacity: 1; }
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.select-none { user-select: none; }
.pointer-events-none { pointer-events: none; }
.fill-current   { fill: currentColor; }
.stroke-current { stroke: currentColor; }

/* --- Utility: Transitions --- */
.transition-colors  { transition: color var(--transition), background-color var(--transition), border-color var(--transition); }
.transition-all     { transition: all var(--transition); }
.transition-opacity { transition: opacity var(--transition); }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* --- Utility: Focus --- */
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus,
.focus\:ring-accent\/50:focus { box-shadow: 0 0 0 3px var(--accent-soft); }
.focus\:border-accent:focus { border-color: var(--accent); }

/* --- Utility: Hover --- */
.hover\:text-accent:hover { color: var(--accent-text); }
.hover\:bg-gray-50:hover  { background-color: var(--surface-alt); }
.hover\:bg-gray-100:hover { background-color: var(--surface-alt); }
.hover\:underline:hover   { text-decoration: underline; }

/* --- Animations --- */
@keyframes spin  { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

.animate-spin  { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* --- Nav Header --- */
.sc-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.sc-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sc-logo {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
}

.sc-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sc-nav a,
.sc-nav button {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.sc-nav a:hover,
.sc-nav button:hover {
    color: var(--text);
    background: var(--surface-alt);
}

.sc-nav a.active {
    color: var(--text);
    background: var(--surface-alt);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--surface-alt);
    color: var(--text);
}
.btn-secondary:hover {
    background: var(--surface-hover);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover {
    background: var(--surface-alt);
    color: var(--text);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
}
.btn-danger:hover {
    background: var(--danger-soft);
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.btn-icon:hover {
    background: var(--surface-alt);
    color: var(--text);
}

/* --- Inputs --- */
.input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition);
}
.input::placeholder {
    color: var(--text-tertiary);
}
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- Checkbox --- */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    border-radius: 4px;
    cursor: pointer;
}

/* --- Badge / Pill --- */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.badge-active  { background: var(--success-soft); color: var(--success); }
.badge-expired { background: var(--warning-soft); color: var(--warning); }
.badge-inactive { background: var(--surface-alt); color: var(--text-tertiary); }
.badge-limit   { background: var(--danger-soft); color: var(--danger); }

/* --- Card --- */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* --- Stat Card --- */
.stat-card {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.stat-value {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    font-family: var(--font-mono);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Table --- */
.sc-table {
    width: 100%;
}

.sc-table thead th {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-tertiary);
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.sc-table tbody tr {
    transition: background-color var(--transition);
}

.sc-table tbody tr:hover {
    background: var(--surface-alt);
}

.sc-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
    vertical-align: middle;
}

.sc-table tbody tr:last-child td {
    border-bottom: none;
}

/* --- File row --- */
.file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition);
    cursor: default;
}

.file-row:hover {
    background: var(--surface-alt);
}

.file-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.file-icon-folder {
    background: var(--accent-soft);
    color: var(--accent);
}

.file-icon-file {
    background: var(--surface-alt);
    color: var(--text-secondary);
}

/* --- Grid file card --- */
.file-card {
    padding: 16px 12px;
    border-radius: var(--radius);
    text-align: center;
    transition: background-color var(--transition);
    cursor: default;
}

.file-card:hover {
    background: var(--surface-alt);
}

.file-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.file-card-icon-folder {
    background: var(--accent-soft);
    color: var(--accent);
}

.file-card-icon-file {
    background: var(--surface-alt);
    color: var(--text-secondary);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}

.breadcrumbs .sep {
    color: var(--text-tertiary);
    margin: 0 2px;
    font-size: 12px;
}

.breadcrumbs button,
.breadcrumbs a {
    color: var(--text-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    transition: all var(--transition);
}

.breadcrumbs button:hover,
.breadcrumbs a:hover {
    color: var(--text);
    background: var(--surface-alt);
}

.breadcrumbs .current {
    color: var(--text);
    font-weight: 500;
}

/* --- Selection bar --- */
.selection-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    font-size: 13px;
}

/* --- Drop zone --- */
.drop-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    transition: all 250ms ease;
    min-height: 200px;
}

.drop-zone.active {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.drop-zone-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 64px 24px;
    color: var(--text-tertiary);
}

.drop-zone-empty svg {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    opacity: 0.4;
}

/* --- Progress bar --- */
.progress-bar {
    height: 3px;
    background: var(--accent);
    border-radius: var(--radius-full);
    transition: width 300ms ease;
}

.progress-track {
    height: 3px;
    background: var(--surface-alt);
    border-radius: var(--radius-full);
    overflow: hidden;
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    animation: fadeIn 150ms ease;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    max-width: 480px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* --- Context menu --- */
.context-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 180px;
    padding: 4px;
    animation: scaleIn 120ms ease;
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--transition);
}
.context-menu-item:hover {
    background: var(--surface-alt);
}

/* --- Login page --- */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--surface);
}

.login-card {
    width: 100%;
    max-width: 360px;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
}

/* --- Public share page --- */
.share-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--surface-alt);
}

.share-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    width: 100%;
    max-width: 380px;
    text-align: center;
}

.share-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: 16px;
    color: var(--accent);
}

/* --- Action row --- */
.action-row {
    display: flex;
    align-items: center;
    gap: 1px;
}

.action-row .btn-icon {
    border-radius: 4px;
}

/* --- Settings section --- */
.settings-section {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.settings-section + .settings-section {
    margin-top: 16px;
}

.settings-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.settings-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* --- Activity timeline --- */
.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    margin-top: 1px;
}

.timeline-icon-view {
    background: var(--surface-alt);
    color: var(--text-secondary);
}

.timeline-icon-download {
    background: var(--accent-soft);
    color: var(--accent);
}

/* --- Alert --- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}

.alert-success { background: var(--success-soft); color: var(--success); }
.alert-danger  { background: var(--danger-soft); color: var(--danger); }
.alert-info    { background: var(--accent-soft); color: var(--accent-text); }

/* --- Token display --- */
.token-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* --- Responsive --- */
@media (min-width: 640px) {
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .md\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .md\:flex  { display: flex; }
    .md\:hidden { display: none; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* No shadows anywhere. Zero. */
.shadow-sm, .shadow, .shadow-lg { box-shadow: none; }
