* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

a { color: #1890ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Login & Install page - Premium Animated */
.login-page, .install-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #0a0e27;
}

/* Animated gradient backdrop */
.login-page::before,
.install-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(120, 119, 198, 0.35) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 119, 198, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.2) 0%, transparent 70%),
        linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    animation: bgShift 15s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes bgShift {
    0%   { filter: hue-rotate(0deg) brightness(1); }
    100% { filter: hue-rotate(30deg) brightness(1.1); }
}

/* Floating orbs */
.login-page::after,
.install-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1px 1px at 60% 70%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.5px 1.5px at 40% 80%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1.5px 1.5px at 10% 90%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 30% 50%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 70% 40%, rgba(255, 255, 255, 0.4), transparent);
    background-size: 200% 200%;
    animation: drift 20s linear infinite;
    opacity: 0.7;
    z-index: 0;
}

@keyframes drift {
    0%   { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

/* Two-column login layout */
.login-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 1100px;
    min-height: 600px;
    margin: 20px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: cardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Left column - Login form */
.login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 44px;
    position: relative;
    background: rgba(10, 14, 39, 0.35);
}

.login-brand {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
}

.brand-logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
}

.login-brand h1 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.brand-slogan {
    font-size: 12px;
    color: rgba(226, 232, 240, 0.6);
    letter-spacing: 1px;
}

.login-form-wrap h2 {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    text-align: center;
}

.login-form-wrap > h2 + .tip {
    display: none;
}

.login-form {
    margin-top: 20px;
}

.login-form .form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.85);
    font-weight: 500;
}

.login-form input[type=text],
.login-form input[type=password] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.login-form input::placeholder {
    color: rgba(226, 232, 240, 0.45);
}

.login-form input:focus {
    border-color: rgba(139, 92, 246, 0.7);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.login-form .btn-primary {
    width: 100%;
    padding: 12px 16px;
    margin-top: 12px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 4px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
    transition: all 0.3s ease;
    animation: btnShift 6s ease infinite;
}

.login-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

/* Right column - Brand showcase */
.login-right {
    flex: 1.15;
    position: relative;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(76, 29, 149, 0.4) 50%, rgba(131, 24, 67, 0.35) 100%);
}

.right-bg-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.right-bg-decor .circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.right-bg-decor .c1 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: -80px;
    right: -60px;
    animation: floatA 14s ease-in-out infinite alternate;
}

.right-bg-decor .c2 {
    width: 240px;
    height: 240px;
    background: #ec4899;
    bottom: -60px;
    left: -40px;
    animation: floatB 16s ease-in-out infinite alternate;
}

.right-bg-decor .c3 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    top: 40%;
    right: 30%;
    animation: floatC 12s ease-in-out infinite alternate;
}

.right-content {
    position: relative;
    z-index: 2;
}

.right-brand-title {
    text-align: center;
    margin-bottom: 32px;
}

.right-brand-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #fff 0%, #93c5fd 50%, #f0abfc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.right-brand-title p {
    font-size: 13px;
    color: rgba(226, 232, 240, 0.75);
    letter-spacing: 1px;
}

/* Logo grid */
.logo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.logo-item:hover {
    transform: translateY(-4px);
}

.logo-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease;
}

.logo-item:hover .logo-box {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.logo-box svg,
.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

/* Features */
.right-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.feature-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

/* Responsive */
@media (max-width: 860px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 480px;
    }
    .login-left,
    .login-right {
        padding: 36px 28px;
    }
    .right-brand-title h2 {
        font-size: 24px;
    }
    .logo-grid {
        gap: 16px;
    }
    .logo-box {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        margin: 10px;
        min-height: auto;
    }
    .login-right {
        order: -1;
        padding: 28px 20px;
    }
    .login-left {
        padding: 28px 20px;
    }
    .logo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    .right-features {
        display: none;
    }
}

/* Install page styles */
.install-container {
    position: relative;
    width: 420px;
    padding: 48px 40px;
    z-index: 2;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: cardIn 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.install-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    padding: 2px;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0deg, rgba(139, 92, 246, 0.8) 90deg,
        rgba(236, 72, 153, 0.8) 180deg,
        rgba(99, 102, 241, 0.8) 270deg,
        transparent 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 6s linear infinite;
    pointer-events: none;
    z-index: -1;
}

.install-container h1 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.install-container h2 {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: rgba(226, 232, 240, 0.75);
    margin-bottom: 28px;
}

.install-page .form-group { margin-bottom: 16px; }
.install-page .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(226, 232, 240, 0.85);
    font-weight: 500;
}

.install-page input[type=text],
.install-page input[type=password],
.install-page input[type=number] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s ease;
    outline: none;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.install-page input:focus {
    border-color: rgba(139, 92, 246, 0.7);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

.install-page .btn {
    width: 100%;
    padding: 12px 16px;
    margin-top: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    background-size: 200% 200%;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35);
    transition: all 0.3s ease;
    animation: btnShift 6s ease infinite;
}

.install-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.install-page .message {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    text-align: center;
    border: 1px solid transparent;
}

.install-page .message.success {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.3);
}

.install-page .message.error {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

.tip a:hover { color: #fff; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #4b5563;
    font-weight: 500;
}

input[type=text], input[type=password], input[type=number], input[type=url], textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
    outline: none;
    background: #fff;
}

input:focus, textarea:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

textarea { resize: vertical; font-family: "Courier New", monospace; }

.btn {
    display: inline-block;
    padding: 8px 16px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.15s;
}

.btn:hover { background: #e5e7eb; text-decoration: none; color: #1f2937; }
.btn-primary { background: #1890ff; color: #fff; border-color: #1890ff; }
.btn-primary:hover { background: #40a9ff; border-color: #40a9ff; color: #fff; }
.btn-danger { background: #f5222d; color: #fff; border-color: #f5222d; }
.btn-danger:hover { background: #ff4d4f; border-color: #ff4d4f; color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-xs { padding: 3px 10px; font-size: 12px; }
button.btn { margin-right: 8px; }

/* ============ PREMIUM BACKEND ADMIN ============ */

/* Admin layout base */
body {
    background: #0f172a;
    color: #e2e8f0;
}

/* Sidebar - Dark premium */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: #94a3b8;
    padding: 0;
    overflow-y: auto;
    border-right: 1px solid rgba(148, 163, 184, 0.1);
    z-index: 100;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top left, rgba(99, 102, 241, 0.15), transparent 60%),
                radial-gradient(ellipse at bottom right, rgba(139, 92, 246, 0.1), transparent 60%);
    pointer-events: none;
}

.logo {
    padding: 24px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.logo::before {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    flex-shrink: 0;
}

.sidebar .logo {
    position: relative;
    z-index: 1;
}

.nav {
    padding: 16px 12px;
    flex: 1;
    position: relative;
    z-index: 1;
}

.nav a {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.25s ease;
    gap: 10px;
    margin-bottom: 4px;
    position: relative;
}

.nav a:hover {
    background: rgba(99, 102, 241, 0.12);
    color: #fff;
    text-decoration: none;
    transform: translateX(4px);
}

.nav a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.nav a.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #6366f1, #ec4899);
    border-radius: 2px;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    position: relative;
    z-index: 1;
}

.sidebar-footer .logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    text-align: left;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    border-radius: 10px;
    font-size: 13px;
    transition: all 0.25s;
    text-decoration: none;
}

.sidebar-footer .logout:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
    text-decoration: none;
    transform: translateX(4px);
}

/* Main content area */
.main {
    margin-left: 220px;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    position: relative;
}

.main::before {
    content: '';
    position: fixed;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.main::after {
    content: '';
    position: fixed;
    bottom: 10%;
    left: 30%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 16px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #fff 0%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-user {
    font-size: 13px;
    color: #94a3b8;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.content {
    padding: 28px;
    position: relative;
    z-index: 1;
}

/* Premium cards */
.card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.3);
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title::before {
    content: '';
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #6366f1, #ec4899);
    border-radius: 2px;
}

.card-tools { display: flex; align-items: center; gap: 10px; }

.card-body { padding: 24px; }

.search-form { display: flex; align-items: center; gap: 10px; }
.search-form input {
    width: 200px;
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 13px;
    outline: none;
    transition: all 0.25s;
}

.search-form input:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Premium Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    padding: 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.stat-label {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #818cf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

/* Premium table */
.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}

.table thead th {
    background: rgba(15, 23, 42, 0.5);
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    color: #94a3b8;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    color: #cbd5e1;
}

.table tbody tr {
    transition: all 0.2s;
}

.table tbody tr:hover {
    background: rgba(99, 102, 241, 0.05);
}

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

.phone-number {
    font-family: "SF Mono", "Courier New", monospace;
    font-weight: 500;
    color: #e2e8f0;
}

.verification-code {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.15));
    color: #a5b4fc;
    border-radius: 8px;
    font-family: "SF Mono", "Courier New", monospace;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.25s;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.verification-code:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.msg-cell {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
}

.time-cell { color: #64748b; font-size: 12px; white-space: nowrap; }

.link-small {
    font-size: 12px;
    color: #818cf8;
    word-break: break-all;
    display: inline-block;
    max-width: 300px;
    text-decoration: none;
    transition: color 0.2s;
}

.link-small:hover { color: #c7d2fe; text-decoration: underline; }

.room-name {
    display: inline-block;
    margin-right: 8px;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    font-size: 12px;
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-active {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-off {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border-radius: 6px;
    font-size: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Premium buttons */
.btn {
    display: inline-block;
    padding: 8px 18px;
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.25s;
    text-decoration: none;
}

.btn:hover {
    background: rgba(71, 85, 105, 0.8);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
    color: #fff;
}

.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 12px; }

button.btn { margin-right: 8px; }

/* Premium forms in admin */
.main .form-group { margin-bottom: 18px; }
.main .form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.main input[type=text],
.main input[type=password],
.main input[type=number],
.main input[type=url],
.main input[type=email],
.main textarea,
.main select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.25s;
    outline: none;
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
}

.main input:focus,
.main textarea:focus,
.main select:focus {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.main textarea { resize: vertical; min-height: 100px; }

.main select { cursor: pointer; }

.main select option {
    background: #1e293b;
    color: #e2e8f0;
}

/* Premium empty state */
.empty {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
    font-size: 14px;
}

.empty a { color: #818cf8; }

/* Premium hint */
.hint {
    background: rgba(99, 102, 241, 0.08);
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #cbd5e1;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.hint code {
    background: rgba(15, 23, 42, 0.6);
    padding: 2px 8px;
    border-radius: 4px;
    color: #f472b6;
    font-family: "SF Mono", "Courier New", monospace;
}

/* Premium pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 4px;
}

.pagination a {
    padding: 8px 16px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination a:hover {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
    text-decoration: none;
}

.pagination span { color: #64748b; font-size: 13px; }

/* Premium toast */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 14px 24px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    color: #fff;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.toast.show { opacity: 1; transform: translateX(0); }
.toast.success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(20, 83, 45, 0.95);
}
.toast.error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(127, 29, 29, 0.95);
}

/* Form horizontal */
.form-horizontal .form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.form-horizontal .form-col { flex: 1; min-width: 200px; }
.form-horizontal .form-col label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #94a3b8;
}

.alert {
    padding: 14px 18px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    margin-bottom: 16px;
    color: #93c5fd;
    font-size: 14px;
}

.alert-warn {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fcd34d;
}

.refresh-icon { display: inline-block; font-size: 14px; }

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Admin responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: static;
    }
    .main { margin-left: 0; }
    .stats { grid-template-columns: 1fr; }
    .card-tools { flex-wrap: wrap; }
    .search-form { width: 100%; }
    .search-form input { width: 100%; }
}
