/* ===== PayCenter - Payment Dashboard CSS ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --accent: #06b6d4;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --purple: #7c3aed;
  --orange: #ea580c;
  --bg: #f1f5f9;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --sidebar-w: 250px;
  --sidebar-mini: 68px;
  --shadow: 0 2px 12px rgba(37,99,235,0.08);
  --radius: 12px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; }
body { font-family: 'Segoe UI', Tahoma, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }

/* ===== AUTH ===== */
.auth-body { background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0891b2 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.auth-container { display: flex; gap: 2.5rem; align-items: center; max-width: 900px; width: 100%; }
.auth-card { background: white; border-radius: 16px; padding: 2.5rem; width: 420px; box-shadow: 0 25px 60px rgba(0,0,0,0.25); flex-shrink: 0; }
.auth-logo { text-align: center; margin-bottom: 2rem; }
.logo-icon-large { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.auth-logo h1 { font-size: 2rem; color: var(--primary); font-weight: 800; }
.auth-logo p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }
.auth-form .form-group { margin-bottom: 1.2rem; }
.auth-form label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.875rem; color: var(--text); }
.auth-form label i { margin-right: 0.4rem; color: var(--primary); }
.auth-form input { width: 100%; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 8px; font-size: 0.95rem; transition: border-color 0.2s; background: #f8fafc; }
.auth-form input:focus { outline: none; border-color: var(--primary); background: white; }
.input-icon-wrap { position: relative; }
.input-icon-wrap input { padding-right: 3rem; }
.toggle-pass { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0.25rem; }
.auth-footer { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: 0.85rem; }

/* Pay illustration */
.auth-illustration { color: white; flex: 1; }
.pay-scene { background: rgba(255,255,255,0.1); border-radius: 16px; padding: 2.5rem; backdrop-filter: blur(10px); text-align: center; }
.pay-icon-main { font-size: 4rem; display: block; margin-bottom: 1rem; }
.pay-scene h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.pay-scene p { opacity: 0.85; margin-bottom: 1.5rem; }
.pay-features { display: flex; flex-direction: column; gap: 0.75rem; }
.pay-feat { background: rgba(255,255,255,0.15); border-radius: 8px; padding: 0.65rem 1rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 500; }
.pay-feat i { font-size: 1.1rem; }

/* ===== LAYOUT ===== */
.app-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; transition: margin-left var(--transition); }
.main-content.sidebar-mini { margin-left: var(--sidebar-mini); }
.content-area { padding: 1.5rem; flex: 1; }

/* ===== SIDEBAR ===== */
.sidebar { width: var(--sidebar-w); background: #0f172a; color: white; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 100; display: flex; flex-direction: column; transition: width var(--transition), transform 0.3s; }
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.sidebar.mini { width: var(--sidebar-mini); }
.sidebar.mini .logo-text, .sidebar.mini .user-info, .sidebar.mini .nav-item span:not(.nav-icon), .sidebar.mini .nav-label, .sidebar.mini .sidebar-footer span { display: none; }
.sidebar.mini .nav-item { justify-content: center; }
.sidebar.mini .user-avatar { margin: 0 auto; }

.sidebar-header { padding: 1.25rem 1.1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo-icon { font-size: 1.5rem; }
.logo-text { font-size: 1.2rem; font-weight: 800; letter-spacing: 0.5px; }
.sidebar-toggle { background: none; border: none; color: rgba(255,255,255,0.5); cursor: pointer; padding: 0.3rem; border-radius: 6px; transition: all 0.2s; }
.sidebar-toggle:hover { background: rgba(255,255,255,0.1); color: white; }
.toggle-icon { display: flex; flex-direction: column; gap: 4px; width: 18px; }
.toggle-icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

.sidebar-user { margin: 0.75rem 0.85rem; padding: 0.75rem; background: rgba(37,99,235,0.15); border-radius: 10px; display: flex; align-items: center; gap: 0.75rem; border: 1px solid rgba(37,99,235,0.2); flex-shrink: 0; }
.user-avatar { width: 38px; height: 38px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.user-info { overflow: hidden; }
.user-name { display: block; font-weight: 600; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role-badge { font-size: 0.7rem; color: #93c5fd; display: flex; align-items: center; gap: 0.3rem; }

.sidebar-nav { flex: 1; padding: 0.5rem 0.75rem; overflow-y: auto; }
.nav-section { margin-bottom: 1rem; }
.nav-label { display: block; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.35); padding: 0.5rem 0.5rem 0.25rem; }
.nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: 8px; color: rgba(255,255,255,0.65); text-decoration: none; transition: all 0.2s; font-size: 0.875rem; font-weight: 500; margin-bottom: 2px; }
.nav-item:hover { background: rgba(255,255,255,0.07); color: white; }
.nav-item.active { background: linear-gradient(135deg, rgba(37,99,235,0.5), rgba(6,182,212,0.3)); color: white; }
.nav-icon { width: 20px; text-align: center; flex-shrink: 0; }

.sidebar-footer { padding: 0.75rem; border-top: 1px solid rgba(255,255,255,0.07); flex-shrink: 0; }
.nav-logout { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.75rem; border-radius: 8px; color: rgba(255,99,99,0.8); text-decoration: none; transition: all 0.2s; font-size: 0.875rem; font-weight: 500; }
.nav-logout:hover { background: rgba(220,38,38,0.15); color: #fca5a5; }

/* ===== TOPBAR ===== */
.topbar { background: white; padding: 0.85rem 1.5rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--border); box-shadow: 0 1px 4px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 50; }
.topbar-toggle { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.1rem; padding: 0.4rem; border-radius: 6px; transition: all 0.2s; }
.topbar-toggle:hover { background: var(--bg); color: var(--text); }
.topbar-title { flex: 1; }
.page-title { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.topbar-date { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); font-size: 0.8rem; }
.topbar-user { display: flex; align-items: center; gap: 0.6rem; }
.t-user-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.t-avatar { width: 34px; height: 34px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; font-size: 0.85rem; }

/* ===== CARDS ===== */
.card { background: white; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; overflow: hidden; border: 1px solid var(--border); }
.card-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 0.95rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.card-header h3 i { color: var(--primary); }
.card-body { padding: 1.25rem; }
.card-body.p0 { padding: 0; }

/* ===== STATS GRID ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat-card { background: white; border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); border: 1px solid var(--border); border-left: 4px solid transparent; }
.stat-blue { border-left-color: var(--primary); }
.stat-green { border-left-color: var(--success); }
.stat-yellow { border-left-color: var(--warning); }
.stat-red { border-left-color: var(--danger); }
.stat-purple { border-left-color: var(--purple); }
.stat-orange { border-left-color: var(--orange); }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.stat-blue .stat-icon { background: rgba(37,99,235,0.1); color: var(--primary); }
.stat-green .stat-icon { background: rgba(22,163,74,0.1); color: var(--success); }
.stat-yellow .stat-icon { background: rgba(217,119,6,0.1); color: var(--warning); }
.stat-red .stat-icon { background: rgba(220,38,38,0.1); color: var(--danger); }
.stat-purple .stat-icon { background: rgba(124,58,237,0.1); color: var(--purple); }
.stat-orange .stat-icon { background: rgba(234,88,12,0.1); color: var(--orange); }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; font-weight: 500; }

/* ===== DASHBOARD GRID ===== */
.dashboard-grid { display: grid; grid-template-columns: 1fr 350px; gap: 1.25rem; margin-bottom: 1.25rem; }
.chart-card .card-body { padding: 1rem; }

/* Method rows */
.method-row { display: flex; align-items: center; justify-content: space-between; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.method-row:last-child { border-bottom: none; }
.method-name { font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; color: var(--text); }
.method-name i { color: var(--primary); font-size: 0.6rem; }
.method-stats { display: flex; align-items: center; gap: 0.75rem; }
.method-amount { font-weight: 700; font-size: 0.875rem; color: var(--primary); }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 600px; }
.table thead tr { background: #f8fafc; }
.table th { padding: 0.75rem 1rem; text-align: left; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; vertical-align: middle; }
.table tbody tr:hover { background: #f8fafc; }
.table tbody tr:last-child td { border-bottom: none; }
.empty-text { text-align: center; color: var(--text-muted); padding: 2rem !important; font-style: italic; }
.link-order { color: var(--primary); text-decoration: none; font-weight: 600; }
.link-order:hover { text-decoration: underline; }
.customer-info { display: flex; flex-direction: column; }
.customer-info small { color: var(--text-muted); font-size: 0.78rem; }
.amount-cell { font-weight: 700; color: var(--primary); }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.65rem; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: rgba(22,163,74,0.1); color: #15803d; }
.badge-yellow { background: rgba(217,119,6,0.1); color: #b45309; }
.badge-red { background: rgba(220,38,38,0.1); color: #b91c1c; }
.badge-orange { background: rgba(234,88,12,0.1); color: #c2410c; }
.badge-gray { background: rgba(100,116,139,0.1); color: #475569; }
.badge-count { background: var(--primary); color: white; border-radius: 6px; padding: 0.15rem 0.5rem; font-size: 0.72rem; font-weight: 700; }
.badge-method { background: rgba(37,99,235,0.08); color: var(--primary); border-radius: 6px; padding: 0.2rem 0.55rem; font-size: 0.78rem; font-weight: 600; }

/* ===== BUTTONS ===== */
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-primary.btn-full { width: 100%; justify-content: center; padding: 0.8rem; }
.btn-danger { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.2rem; background: var(--danger); color: white; border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger.btn-full { width: 100%; justify-content: center; padding: 0.8rem; }
.btn-outline-sm { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; border: 2px solid var(--border); color: var(--text-muted); border-radius: 8px; font-size: 0.825rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: all 0.2s; background: white; }
.btn-outline-sm:hover { border-color: var(--primary); color: var(--primary); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; background: rgba(37,99,235,0.08); color: var(--primary); border: none; cursor: pointer; text-decoration: none; transition: all 0.2s; font-size: 0.8rem; }
.btn-icon:hover { background: var(--primary); color: white; }
.btn-icon-edit { background: rgba(217,119,6,0.08); color: var(--warning); }
.btn-icon-edit:hover { background: var(--warning); color: white; }
.btn-icon-del { background: rgba(220,38,38,0.08); color: var(--danger); }
.btn-icon-del:hover { background: var(--danger); color: white; }
.btn-filter { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-filter:hover { background: var(--primary-dark); }

/* ===== PAGE ACTIONS ===== */
.page-actions { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; flex-wrap: wrap; }

/* ===== FILTER ===== */
.filter-card { margin-bottom: 1.25rem; }
.filter-form { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.filter-group { flex: 1; min-width: 160px; }
.filter-group input, .filter-group select { width: 100%; padding: 0.6rem 0.85rem; border: 2px solid var(--border); border-radius: 8px; font-size: 0.875rem; background: #f8fafc; transition: border-color 0.2s; }
.filter-group input:focus, .filter-group select:focus { outline: none; border-color: var(--primary); background: white; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 2px solid var(--border); color: var(--text-muted); text-decoration: none; font-weight: 600; font-size: 0.875rem; transition: all 0.2s; background: white; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

/* ===== ACTION CELL ===== */
.action-cell { display: flex; gap: 0.35rem; align-items: center; }

/* ===== FORM ===== */
.form-card { max-width: 900px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.form-section h4 { font-size: 0.875rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--border); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.85rem; color: var(--text); }
.req { color: var(--danger); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.65rem 0.9rem; border: 2px solid var(--border); border-radius: 8px; font-size: 0.9rem; background: #f8fafc; transition: border-color 0.2s; font-family: inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: white; }
.form-group input[readonly] { background: #e2e8f0; color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: center; padding-top: 1rem; border-top: 2px solid var(--border); }

/* ===== DETAIL ===== */
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; }
.detail-main { grid-row: span 2; }
.detail-amount { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; border-radius: 10px; padding: 1.5rem; text-align: center; margin-bottom: 1.5rem; }
.amount-label { font-size: 0.875rem; opacity: 0.85; margin-bottom: 0.4rem; }
.amount-value { font-size: 2rem; font-weight: 800; }
.detail-rows { display: flex; flex-direction: column; gap: 0; }
.detail-row { display: flex; align-items: flex-start; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.d-label { flex-shrink: 0; width: 120px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); padding-top: 0.1rem; }
.d-value { flex: 1; font-size: 0.9rem; color: var(--text); font-weight: 500; }
.action-buttons { display: flex; flex-direction: column; gap: 0.75rem; }

/* ===== ALERT ===== */
.alert { padding: 0.85rem 1rem; border-radius: 8px; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; }
.alert-error { background: rgba(220,38,38,0.08); color: #b91c1c; border: 1px solid rgba(220,38,38,0.2); }

/* ===== ERROR PAGE ===== */
.error-page { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
.error-box { text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--primary); opacity: 0.15; line-height: 1; }
.error-box h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.error-box p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* ===== MIDTRANS ===== */
.midtrans-banner { background: linear-gradient(135deg, #1d4ed8, #0891b2); color: white; border-radius: var(--radius); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.banner-icon { font-size: 1.5rem; display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.banner-body { flex: 1; }
.banner-body strong { display: block; font-size: 0.95rem; font-weight: 700; }
.banner-body span { font-size: 0.82rem; opacity: 0.85; }
.banner-mode { flex-shrink: 0; }

.btn-midtrans { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: linear-gradient(135deg, #1d4ed8, #0891b2); color: white; border: none; border-radius: 10px; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s; box-shadow: 0 4px 15px rgba(37,99,235,0.3); }
.btn-midtrans:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-midtrans.btn-full { width: 100%; justify-content: center; }

.btn-gen-id { padding: 0.6rem 1rem; background: var(--bg); border: 2px solid var(--border); border-radius: 0 8px 8px 0; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--primary); transition: all 0.2s; white-space: nowrap; }
.btn-gen-id:hover { background: var(--primary); color: white; border-color: var(--primary); }
.input-with-btn { display: flex; }
.input-with-btn input { border-radius: 8px 0 0 8px; border-right: none; flex: 1; }
.input-prefix { display: flex; align-items: center; border: 2px solid var(--border); border-radius: 8px; overflow: hidden; background: #f8fafc; transition: border-color 0.2s; }
.input-prefix:focus-within { border-color: var(--primary); background: white; }
.prefix { padding: 0 0.75rem; color: var(--text-muted); font-weight: 600; font-size: 0.9rem; flex-shrink: 0; }
.input-prefix input { border: none; background: transparent; flex: 1; padding: 0.65rem 0.75rem 0.65rem 0; }
.input-prefix input:focus { outline: none; }
.input-hint { display: block; margin-top: 0.3rem; color: var(--primary); font-weight: 600; font-size: 0.82rem; }

.info-box { background: rgba(37,99,235,0.06); border: 1px solid rgba(37,99,235,0.15); border-radius: 8px; padding: 0.85rem 1rem; display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1.5rem; }
.info-box i { color: var(--primary); margin-top: 0.1rem; flex-shrink: 0; }
.info-box p { font-size: 0.875rem; color: var(--text); line-height: 1.5; }

.payment-link-box { background: #f8fafc; border: 2px solid var(--border); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.link-url { font-size: 0.78rem; color: var(--text-muted); word-break: break-all; margin-bottom: 0.75rem; font-family: monospace; background: white; padding: 0.5rem 0.75rem; border-radius: 6px; border: 1px solid var(--border); }
.btn-copy-big { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.65rem; background: var(--primary); color: white; border: none; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.875rem; margin-bottom: 0.5rem; transition: all 0.2s; }
.btn-copy-big:hover { background: var(--primary-dark); }
.btn-open-link { display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; padding: 0.65rem; background: rgba(6,182,212,0.1); color: #0891b2; border: 2px solid #0891b2; border-radius: 8px; font-weight: 700; font-size: 0.875rem; text-decoration: none; transition: all 0.2s; }
.btn-open-link:hover { background: #0891b2; color: white; }

.qr-hint { display: flex; align-items: center; gap: 0.5rem; color: var(--text-muted); font-size: 0.8rem; margin-top: 0.75rem; }
.qr-hint i { color: var(--primary); }

.success-box { text-align: center; padding: 2rem 1rem; }
.success-box i { font-size: 3rem; color: var(--success); display: block; margin-bottom: 1rem; }
.success-box h4 { font-size: 1.1rem; font-weight: 700; color: var(--success); margin-bottom: 0.5rem; }
.success-box p { color: var(--text-muted); font-size: 0.875rem; }

.btn-copy { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0.65rem; background: rgba(37,99,235,0.08); color: var(--primary); border: 1px solid rgba(37,99,235,0.2); border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-copy:hover { background: var(--primary); color: white; }
.btn-copy-success { background: var(--success) !important; color: white !important; border-color: var(--success) !important; }
.btn-icon-check { background: rgba(6,182,212,0.08); color: #0891b2; }
.btn-icon-check:hover { background: #0891b2; color: white; }
.text-muted { color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-container { flex-direction: column; }
  .auth-illustration { display: none; }
  .auth-card { width: 100%; max-width: 420px; }
  .t-user-name, .topbar-date { display: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .content-area { padding: 1rem; }
}
