/* ============================================
   ROOT VARIABLES
   ============================================ */
:root {
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-filter: #f5f7f9;
    --bg-skeleton: #f0f3f6;
    --text-primary: #1a2634;
    --text-secondary: #8a9aa8;
    --text-muted: #b8c5d0;
    --border-color: #eef2f5;
    --shadow: rgba(0, 0, 0, 0.04);
    --shadow-hover: rgba(0, 0, 0, 0.06);
    --glow: rgba(0, 122, 255, 0.05);
    --blue: #007aff;
    --blue-dark: #0055cc;
    --green: #0f7b4a;
    --green-light: #e8f5ed;
    --red: #b33a3a;
    --red-light: #fde8e8;
    --radius: 24px;
    --transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.dark {
    --bg-body: #0d1117;
    --bg-card: #161b22;
    --bg-input: #1a2634;
    --bg-filter: #1a2634;
    --bg-skeleton: #1a2634;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #4a6a7a;
    --border-color: #30363d;
    --shadow: rgba(0, 0, 0, 0.2);
    --shadow-hover: rgba(0, 0, 0, 0.3);
    --glow: rgba(0, 122, 255, 0.08);
    --green: #4ade80;
    --green-light: #0a2a1a;
    --red: #f87171;
    --red-light: #2a1414;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* ============================================
   APP CONTAINER
   ============================================ */
.app-container {
    max-width: 768px;
    margin: 0 auto;
    padding: 32px 20px 40px;
    position: relative;
    z-index: 10;
}

/* ============================================
   PARTICLES
   ============================================ */
.particles-container {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    opacity: 0;
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    20% { opacity: 0.6; }
    80% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fade-down {
    from { opacity: 0; transform: translateY(-24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(32px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(24px, -16px); }
}

@keyframes float-delay {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-24px, 16px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes skeleton-loading {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 0; }
}

@keyframes badge-pop {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(4deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
}

@keyframes highlight-pop {
    0% { transform: scale(0.96); opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(0, 122, 255, 0.06); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}

/* ============================================
   UTILITY
   ============================================ */
.theme-transition {
    transition: background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.animate-fade-down {
    animation: fade-down 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-pulse-slow {
    animation: pulse-slow 3s ease-in-out infinite;
}

/* ============================================
   HEADER
   ============================================ */
.app-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.header-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.08), transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.header-glow::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 25%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05), transparent 70%);
    border-radius: 50%;
    animation: float-delay 7s ease-in-out infinite;
}

/* Brand Top */
.brand-top {
    margin-bottom: 20px;
    animation: fade-down 0.7s ease forwards;
}

.brand-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.4em;
    color: var(--blue);
    background: #e8f0f5;
    padding: 6px 16px;
    border-radius: 40px;
    border: 1px solid #dce8f0;
    text-transform: uppercase;
    transition: background 0.5s ease, border-color 0.5s ease;
}

.dark .brand-badge {
    background: #1a2634;
    border-color: #2a3a4a;
}

/* Brand Main */
.brand-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
    animation: fade-down 0.7s ease forwards;
    animation-delay: 0.1s;
    position: relative;
}

.logo-wrapper {
    position: relative;
    flex-shrink: 0;
}

.logo-image {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.2);
    border: 2px solid rgba(0, 122, 255, 0.1);
    transition: transform 0.5s ease, border-color 0.5s ease;
    position: relative;
    z-index: 2;
}

.logo-image:hover {
    transform: scale(1.08) rotate(-3deg);
    border-color: rgba(0, 122, 255, 0.3);
}

.logo-glow {
    position: absolute;
    inset: -8px;
    background: rgba(0, 122, 255, 0.15);
    border-radius: 20px;
    filter: blur(16px);
    animation: pulse-slow 3s ease-in-out infinite;
}

.logo-badge {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 10;
    background: linear-gradient(135deg, #ff3b30, #cc0000);
    color: white;
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.35);
    border: 2px solid white;
    white-space: nowrap;
    animation: badge-pop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.logo-badge::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 40px;
    border: 2px solid rgba(255, 59, 48, 0.15);
    animation: ring-pulse 2s ease-in-out infinite;
}

.logo-badge.hidden {
    display: none;
}

.logo-shake {
    animation: shake 0.5s ease forwards;
}

/* Brand Text */
.brand-text {
    text-align: left;
}

.brand-title {
    font-size: 40px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

.brand-dot {
    color: var(--blue);
    font-size: 36px;
}

.brand-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.brand-sub span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: color 0.5s ease;
}

.brand-divider {
    width: 4px;
    height: 4px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
}

.brand-management {
    color: var(--blue) !important;
    font-weight: 700 !important;
}

/* Badge Premium */
.badge-premium {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: white;
    font-size: 8px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 40px;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    animation: pulse-slow 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.15);
    letter-spacing: 0.5px;
}

/* Subtitle */
.subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 12px;
    animation: fade-down 0.7s ease forwards;
    animation-delay: 0.2s;
    transition: color 0.5s ease;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    animation: fade-down 0.7s ease forwards;
    animation-delay: 0.25s;
}

.divider-line {
    width: 48px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--blue));
    border-radius: 2px;
    opacity: 0.4;
}

.divider-line.right {
    background: linear-gradient(to left, transparent, var(--blue));
}

.divider-dot {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse-slow 2s ease-in-out infinite;
}

.divider-dot.small {
    width: 5px;
    height: 5px;
    opacity: 0.5;
    animation-delay: 0.5s;
}

.divider-dot.tiny {
    width: 3px;
    height: 3px;
    opacity: 0.25;
    animation-delay: 1s;
}

/* Counter */
.counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    animation: fade-down 0.7s ease forwards;
    animation-delay: 0.3s;
    flex-wrap: wrap;
    transition: color 0.5s ease;
}

.counter span:first-child {
    color: var(--text-secondary);
}

.counter #total-count {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
    transition: color 0.5s ease;
}

.counter-divider {
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.5s ease;
}

.counter #update-time {
    color: var(--text-primary);
    font-weight: 600;
    transition: color 0.5s ease;
}

/* ============================================
   CONTROLS
   ============================================ */
.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    animation: fade-down 0.7s ease forwards;
    animation-delay: 0.32s;
}

/* Filter */
.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

.filter-buttons {
    display: flex;
    gap: 4px;
    background: var(--bg-filter);
    padding: 4px;
    border-radius: 12px;
    transition: background 0.5s ease;
}

.filter-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-btn:hover {
    color: var(--text-primary);
    transform: scale(1.04);
}

.filter-btn.active {
    background: var(--blue);
    color: white;
    box-shadow: 0 2px 12px rgba(0, 122, 255, 0.2);
}

.filter-btn.active:hover {
    transform: scale(1.02);
}

/* Theme */
.theme-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.theme-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.theme-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    inset: 0;
    background: #dce8f0;
    border-radius: 34px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.theme-slider::before {
    content: '☀️';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.theme-toggle input:checked + .theme-slider {
    background: #1a2634;
}

.theme-toggle input:checked + .theme-slider::before {
    transform: translateX(20px);
    content: '🌙';
}

.theme-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

/* ============================================
   SEARCH
   ============================================ */
.search-wrapper {
    margin-bottom: 24px;
    animation: fade-down 0.7s ease forwards;
    animation-delay: 0.35s;
}

.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

.search-box input {
    width: 100%;
    padding: 14px 48px 14px 44px;
    background: var(--bg-input);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

.search-box input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.06);
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.search-box:focus-within .search-clear,
.search-box:hover .search-clear {
    opacity: 1;
    pointer-events: auto;
}

.search-clear:hover {
    color: var(--text-primary);
    transform: translateY(-50%) rotate(90deg);
}

.search-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--blue), var(--blue-dark));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.search-box:focus-within .search-underline {
    width: 100%;
}

/* ============================================
   LIST
   ============================================ */
.list-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ============================================
   CARD
   ============================================ */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(32px) scale(0.96);
}

.card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card:hover {
    transform: translateY(-4px) scale(1.005);
    box-shadow: 0 16px 48px var(--shadow-hover);
    border-color: var(--border-color);
}

.card:active {
    transform: scale(0.99);
}

.card-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .card-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.card-left {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--bg-filter);
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.08);
    background: var(--border-color);
}

.card-info {
    flex: 1;
    min-width: 0;
}

.card-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
}

.card-row .label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    min-width: 80px;
    transition: color 0.5s ease;
}

.card-row .value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.5s ease;
}

.card-row .value.nomor {
    font-family: monospace;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 480px) {
    .card-row {
        flex-direction: column;
        gap: 0;
        padding: 1px 0;
    }
    .card-row .label {
        min-width: auto;
        font-size: 9px;
    }
    .card-row .value {
        font-size: 14px;
    }
    .card-row .value.nomor {
        font-size: 15px;
    }
}

/* ============================================
   BADGE STATUS
   ============================================ */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 40px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all var(--transition);
}

.badge-status .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.badge-aktif {
    background: var(--green-light);
    color: var(--green);
    transition: background 0.5s ease, color 0.5s ease;
}

.badge-aktif .dot {
    background: var(--green);
    animation: pulse-slow 1.5s ease-in-out infinite;
}

.badge-limit {
    background: var(--red-light);
    color: var(--red);
    transition: background 0.5s ease, color 0.5s ease;
}

.badge-limit .dot {
    background: var(--red);
}

/* ============================================
   BUTTON COPY
   ============================================ */
.btn-copy {
    padding: 10px 24px;
    border: none;
    border-radius: 60px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    background: var(--bg-filter);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 120px;
    border: 1px solid transparent;
}

.btn-copy:hover:not(:disabled) {
    background: var(--blue);
    color: white;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 122, 255, 0.2);
}

.btn-copy:active:not(:disabled) {
    transform: scale(0.94);
}

.btn-copy:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(0.3);
}

.btn-copy.success {
    background: var(--green);
    color: white;
    transform: scale(0.96);
}

/* ============================================
   SKELETON
   ============================================ */
.skeleton {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px 24px;
    border: 1px solid var(--border-color);
}

.skeleton-line {
    height: 18px;
    background: var(--bg-skeleton);
    background: linear-gradient(90deg, var(--bg-skeleton) 25%, var(--border-color) 50%, var(--bg-skeleton) 75%);
    background-size: 200% 100%;
    border-radius: 6px;
    animation: skeleton-loading 1.8s ease-in-out infinite;
    transition: background 0.5s ease;
}

.skeleton-line.short {
    width: 50%;
    height: 12px;
    margin-top: 8px;
}

.skeleton-line.button {
    width: 100px;
    height: 38px;
    border-radius: 60px;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    transition: all 0.5s ease;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
    animation: pulse-slow 2s ease-in-out infinite;
}

.empty-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.5s ease;
}

.empty-desc {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

/* ============================================
   SEPARATOR
   ============================================ */
.separator {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 4px;
}

.separator-dot {
    font-size: 14px;
}

.separator-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.separator-label.aktif {
    color: var(--green);
}

.separator-label.limit {
    color: var(--red);
}

.separator-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--border-color), transparent);
    transition: background 0.5s ease;
}

.separator-count {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-filter);
    padding: 2px 10px;
    border-radius: 40px;
    transition: all 0.5s ease;
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    transition: border-color 0.5s ease;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.footer-brand span:first-child,
.footer-brand span:last-child {
    font-size: 10px;
    color: var(--blue);
    font-weight: 900;
    letter-spacing: 0.3em;
}

.footer-brand span:not(:first-child):not(:last-child) {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2em;
    transition: color 0.5s ease;
}

.app-footer p {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.5s ease;
}

.footer-heart {
    color: var(--blue);
    display: inline-block;
    animation: pulse-slow 2s ease-in-out infinite;
}

.footer-powered {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    margin-top: 4px;
    color: var(--text-muted);
    transition: color 0.5s ease;
}

/* ============================================
   FLOATING BUTTON
   ============================================ */
.floating-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 122, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.floating-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.floating-btn:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 12px 48px rgba(0, 122, 255, 0.4);
}

.floating-btn:hover::before {
    opacity: 1;
}

.floating-btn:active {
    transform: scale(0.9);
}

.floating-btn::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(0, 122, 255, 0.12);
    animation: ring-pulse 2.5s ease-in-out infinite;
}

.floating-icon {
    width: 26px;
    height: 26px;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.floating-btn:hover .floating-icon {
    transform: rotate(180deg);
}

.floating-icon.spinning {
    animation: spin 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.floating-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border-radius: 50%;
    border: 2px solid white;
    animation: pulse-slow 1.5s ease-in-out infinite;
    display: none;
}

/* Tooltip */
.floating-tooltip {
    position: absolute;
    bottom: 72px;
    right: 0;
    background: #1a2634;
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 240px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(8px) scale(0.96);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    transform-origin: bottom right;
    border: 1px solid rgba(255,255,255,0.06);
}

.floating-container:hover .floating-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tooltip-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tooltip-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.tooltip-inner > div {
    flex: 1;
}

.tooltip-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.tooltip-desc {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 1px;
}

.tooltip-key {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
    font-family: monospace;
    flex-shrink: 0;
}

.tooltip-arrow {
    position: absolute;
    bottom: -7px;
    right: 26px;
    width: 14px;
    height: 14px;
    background: #1a2634;
    transform: rotate(45deg);
    border-radius: 3px;
    border-right: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 16px 48px var(--shadow);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast.warning {
    background: var(--red-light);
    border-color: var(--red);
    color: var(--red);
}

.toast.error {
    background: var(--red-light);
    border-color: var(--red);
    color: var(--red);
}

.toast.refresh {
    background: #1a2634;
    border-color: rgba(255,255,255,0.06);
    color: white;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(32px) scale(0.96);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-reveal.delay-1 { transition-delay: 0.04s; }
.scroll-reveal.delay-2 { transition-delay: 0.08s; }
.scroll-reveal.delay-3 { transition-delay: 0.12s; }
.scroll-reveal.delay-4 { transition-delay: 0.16s; }
.scroll-reveal.delay-5 { transition-delay: 0.2s; }

/* ============================================
   CARD HIGHLIGHT
   ============================================ */
.card-highlight {
    animation: highlight-pop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.06), 0 12px 40px var(--shadow) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .app-container {
        padding: 20px 16px 32px;
    }
    
    .brand-main {
        gap: 12px;
    }
    
    .logo-image {
        width: 48px;
        height: 48px;
    }
    
    .brand-title {
        font-size: 30px;
    }
    
    .brand-dot {
        font-size: 28px;
    }
    
    .brand-sub span {
        font-size: 9px;
    }
    
    .badge-premium {
        font-size: 7px;
        padding: 3px 10px;
        top: -4px;
        right: -4px;
    }
    
    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .theme-group {
        justify-content: center;
    }
    
    .card {
        padding: 16px 18px;
    }
    
    .card-left {
        gap: 12px;
    }
    
    .card-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .btn-copy {
        padding: 8px 18px;
        font-size: 12px;
        min-width: 100px;
        width: 100%;
    }
    
    .floating-container {
        bottom: 16px;
        right: 16px;
    }
    
    .floating-btn {
        width: 52px;
        height: 52px;
    }
    
    .floating-icon {
        width: 22px;
        height: 22px;
    }
    
    .floating-tooltip {
        min-width: 200px;
        padding: 12px 14px;
        bottom: 64px;
    }
    
    .toast {
        padding: 10px 20px;
        font-size: 13px;
        white-space: normal;
        max-width: 92%;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .app-container {
        padding: 32px 24px 40px;
    }
}

/* ============================================
   CARD LEFT - Logo DANA + Status Badge
   ============================================ */
.card-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

/* ============================================
   LOGO DANA MINI DI CARD
   ============================================ */
.card-logo {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}

.card-logo-img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
    background: var(--bg-card);
}

.card:hover .card-logo-img {
    transform: scale(1.06);
    border-color: var(--blue);
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.12);
}

/* ============================================
   STATUS BADGE DI ATAS LOGO
   ============================================ */
.card-status-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 40px;
    border: 2px solid var(--bg-body);
    white-space: nowrap;
    z-index: 5;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    animation: badge-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Badge AKTIF - Hijau */
.card-status-badge.status-aktif {
    background: linear-gradient(135deg, #0f7b4a, #0a5e38);
    color: white;
    box-shadow: 0 2px 16px rgba(15, 123, 74, 0.3);
}

/* Badge LIMIT - Merah */
.card-status-badge.status-limit {
    background: linear-gradient(135deg, #cc0000, #990000);
    color: white;
    box-shadow: 0 2px 16px rgba(179, 58, 58, 0.3);
}

/* Animasi badge muncul */
@keyframes badge-pop {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.15) rotate(3deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Badge berdenyut ring */
.card-status-badge::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 40px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    animation: ring-pulse 2s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0; }
}

/* ============================================
   CARD INFO
   ============================================ */
.card-info {
    flex: 1;
    min-width: 0;
}

.card-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 0;
}

.card-row .label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    min-width: 80px;
    transition: color 0.5s ease;
}

.card-row .value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.5s ease;
}

.card-row .value.nomor {
    font-family: monospace;
    font-size: 17px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   RESPONSIVE - CARD
   ============================================ */
@media (max-width: 480px) {
    .card-left {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .card-logo {
        width: 44px;
        height: 44px;
    }
    
    .card-logo-img {
        border-radius: 10px;
    }
    
    .card-status-badge {
        font-size: 7px;
        padding: 2px 8px;
        top: -8px;
        right: -8px;
    }
    
    .card-row {
        flex-direction: column;
        gap: 0;
        padding: 1px 0;
    }
    .card-row .label {
        min-width: auto;
        font-size: 9px;
    }
    .card-row .value {
        font-size: 14px;
    }
    .card-row .value.nomor {
        font-size: 15px;
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    .card-logo {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   MODAL PERINGATAN
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modal-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-overlay.hidden {
    display: none;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-container {
    max-width: 440px;
    width: 100%;
    animation: modal-pop-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modal-pop-in {
    from { transform: scale(0.85) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 32px 28px 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative line */
.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff3b30, #ff6b35);
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

.dark .modal-content {
    background: #161b22;
    border-color: #30363d;
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: inline-block;
    animation: pulse-slow 2s ease-in-out infinite;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    transition: color 0.5s ease;
}

.modal-body {
    text-align: left;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--bg-filter);
    transition: all 0.5s ease;
    margin: 0;
}

.dark .modal-text {
    background: #1a2634;
}

.modal-text strong {
    color: var(--text-primary);
    font-weight: 700;
    transition: color 0.5s ease;
}

.modal-text.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 59, 48, 0.05));
    border-left: 3px solid #ff6b35;
}

.dark .modal-text.highlight {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(255, 59, 48, 0.05));
}

.modal-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ff6b35, #ff3b30);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 20px rgba(255, 59, 48, 0.25);
}

.modal-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 32px rgba(255, 59, 48, 0.35);
}

.modal-btn:active {
    transform: scale(0.96);
}

/* ============================================
   RESPONSIVE MODAL
   ============================================ */
@media (max-width: 480px) {
    .modal-content {
        padding: 24px 18px 20px;
        border-radius: 20px;
    }
    
    .modal-icon {
        font-size: 36px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-text {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .modal-btn {
        padding: 12px;
        font-size: 14px;
    }
}
