:root {
    /* Market Leader Palette - Deep Cyber / Trust */
    --bg-body: #050509;
    --bg-card: #0c0e14;
    --bg-card-hover: #11141c;
    --bg-input: #080a0f;

    --primary: #3b82f6;
    /* Trustworthy Blue */
    --primary-glow: rgba(59, 130, 246, 0.4);
    --accent: #10b981;
    /* Success Green */
    --accent-glow: rgba(16, 185, 129, 0.4);
    --danger: #ef4444;
    --warning: #f59e0b;

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border: #1f2937;
    --border-hover: #374151;

    --font-heading: 'Kanit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
    --glow-primary: 0 0 20px var(--primary-glow);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(16, 185, 129, 0.05) 0%, transparent 40%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-top: 0;
    color: #fff;
    font-weight: 600;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    color: #60a5fa;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

input,
select,
textarea {
    width: 100%;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-main);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: #2563eb;
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.03);
}

.alert-danger {
    border-color: var(--danger);
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
}

.alert-success {
    border-color: var(--accent);
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Navbar overrides if using existing structure */
.navbar-default {
    background-color: rgba(12, 14, 20, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border) !important;
}

.sidebar .nav>li>a {
    color: var(--text-muted) !important;
}

.sidebar .nav>li>a:hover,
.sidebar .nav>li>a.active {
    color: var(--primary) !important;
    background: rgba(59, 130, 246, 0.05) !important;
    border-left: 3px solid var(--primary);
}

.white-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm) !important;
}

.bg-title {
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
}

/* Dashboard Stats */
.analytics-info h3 {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.counter {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #fff !important;
}

.text-success {
    color: var(--accent) !important;
}

.text-purple {
    color: #8b5cf6 !important;
}

.text-info {
    color: var(--primary) !important;
}

.text-danger {
    color: var(--danger) !important;
}

/* Pricing Plan - Card Hover Fix (No Grid Shift) */
.pricing-plan {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid var(--border) !important;
}

.pricing-plan:hover {
    transform: none !important;
    /* Forces no movement as requested */
    border-color: var(--primary) !important;
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.15) !important;
}

.pricing-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.price-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
}

.price-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
    opacity: 0.7;
}

.price-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.price-features li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

/* Payment Method Cards (TMNG Refactor) */
.payment-card-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: left;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.payment-card-btn:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
    /* Subtle shift right instead of scale */
}

.payment-card-btn .icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.payment-card-btn .text-wrapper {
    display: flex;
    flex-direction: column;
}

.payment-card-btn .text-wrapper h4 {
    margin: 0 0 2px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-transform: none;
}

.payment-card-btn .text-wrapper span {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    text-transform: none;
}

/* Utils */
.text-primary {
    color: var(--primary) !important;
}

/* Pricing Plan - Formal Design Polish (Enhanced) */
.pricing-plan {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(20, 20, 20, 0.4) 100%), var(--bg-card) !important;
    border-radius: var(--radius-md) !important;
    height: 100%;
    /* Ensure equal height */
    padding-bottom: 20px;
}

.pricing-plan:hover {
    transform: translateY(-5px) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 10px 40px -10px rgba(59, 130, 246, 0.3) !important;
    z-index: 10;
}

.pricing-header {
    border-bottom: 1px solid var(--border);
    padding: 35px 20px;
    margin-bottom: 25px;
    text-align: center;
    background: rgba(0, 0, 0, 0.15);
}

.price-title {
    color: var(--primary) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    margin-bottom: 15px;
    font-weight: 700;
}

.price-price {
    font-size: 3.5rem;
    font-weight: 600;
    color: #fff;
    line-height: 1;
    font-family: var(--font-body);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.price-price .currency {
    font-size: 1.8rem;
    vertical-align: top;
    margin-top: 5px;
    display: inline-block;
    color: var(--primary);
    opacity: 1;
}

.price-price .period {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 5px;
    opacity: 0.7;
}

.price-features {
    list-style: none;
    padding: 0 30px;
    margin: 0 0 35px 0;
}

.price-features li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.price-features li:last-child {
    border-bottom: none;
}

.price-features i {
    font-size: 16px;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: var(--primary);
}

.pricing-plan .btn {
    border-radius: 6px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 16px 30px;
    text-transform: uppercase;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary) 0%, #2563eb 100%) !important;
    border: none !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    width: 80%;
    /* Nicer visual width */
    margin: 0 auto;
    display: block;
}

.pricing-plan .btn:hover {
    background: linear-gradient(90deg, #2563eb 0%, var(--primary) 100%) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}