:root {
    --ghost-card-bg: rgb(80, 117, 158);
    --ghost-border: rgb(80, 117, 158);
    --ghost-accent: #00F0FF;
    --ghost-accent-hover: #00D8E6;
    --ghost-tg: #F2E370;
    --ghost-tg-hover: #FFF49C;
    --ghost-text-muted: #fff;
    --ghost-bg-gradient: linear-gradient(90deg, #143252, #2f5885);
}

/* Page Reset & Gradient Base */
body {
    margin: 0;
    padding: 0;
    background: var(--ghost-bg-gradient) !important;
    color: #F3F4F6;
    font-family: 'Ubuntu', sans-serif;
    letter-spacing: -0.01em;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Background Canvas Layer */
.ghost-canvas {
    display: block;
    filter: blur(0.5px);
    height: 100vh;
    width: 100vw;
    left: 0;
    top: 0;
    opacity: 0.15;
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

/* Outer Layout Container */
.ghost-faucet-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ghost-container {
    max-width: 1152px;
    margin: 0 auto;
    padding: 32px 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Card Component Base */
.ghost-card {
    background-color: var(--ghost-card-bg);
    border: 1px solid var(--ghost-border);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

/* Controls Bar & Dropdown Navigation */
.ghost-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ghost-border);
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.ghost-back-link {
    color: var(--ghost-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
}

.ghost-back-link:hover {
    color: var(--ghost-accent);
}

.ghost-network-badge {
    display: flex;
    align-items: center;
    background: #50759E;
    border: 1px solid #AEC4DD;
    border-radius: 4px;
    height: 39px;
    padding: 0 12px;
    width: 155px;
    box-sizing: border-box;
    position: relative;
}

.ghost-pulse-dot {
    width: 12px;
    height: 12px;
    background-color: #10B981;
    border-radius: 50%;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 3;
    margin-right: 8px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

.ghost-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 100%;
}

.ghost-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #FFF;
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
    padding-left: 28px;
    padding-right: 28px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 20px 20px;
    z-index: 2;
}

/* Page Title Header */
.ghost-header {
    text-align: center;
    margin-bottom: 32px;
}

.ghost-header h1 {
    font-size: 2.25rem;
    font-weight: 800;
    color: #FFF;
    margin: 0;
}

.ghost-header p {
    color: var(--ghost-text-muted);
    margin-top: 8px;
}

/* Metrics & Stats Bar */
.ghost-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    margin-bottom: 32px;
    gap: 16px;
    flex-wrap: wrap;
}

.ghost-stat-item {
    flex: 1;
    text-align: center;
}

.ghost-stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
}

.ghost-stat-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ghost-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ghost-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFF;
    margin-top: 4px;
}

/* Multi-Tier Modules Layout Grid */
.ghost-modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.ghost-module {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ghost-module-tg {
    border: 1px solid #F2E370;
}

.ghost-module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ghost-module h2 {
    font-size: 1.25rem;
    color: #FFF;
    margin: 0;
}

.ghost-badge {
    background: #60C45B;
    color: rgb(31, 70, 113);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 16px;
}

.ghost-badge-tg {
    background: var(--ghost-tg);
    font-weight: 600;
}

.ghost-desc {
    font-size: 0.875rem;
    color: var(--ghost-text-muted);
    margin: 0 0 24px 0;
}

/* Form Inputs & Turnstile Container */
.ghost-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ghost-input {
    width: 100%;
    background-color: rgb(52, 91, 135);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #FFF;
    font-family: monospace;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.ghost-input:focus {
    outline: none;
    border-color: var(--ghost-accent);
}

.ghost-turnstile-wrapper {
    display: flex;
    justify-content: center;
    min-height: 65px;
    border-radius: 8px;
    overflow: hidden;
}

/* Buttons */
.ghost-btn {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
    font-size: 15px;
    font-weight: 500;
}

.ghost-btn-accent {
    background: var(--ghost-card-bg);
    color: #F2E370;
    border: 1px solid #F2E370;
}

.ghost-btn-accent:hover {
    background: var(--ghost-tg-hover);
    color: rgb(31, 70, 113);
}

.ghost-btn-tg {
    background: var(--ghost-tg);
    color: #000;
    display: block;
}

.ghost-btn-tg:hover {
    background: var(--ghost-tg-hover);
}

/* Telegram Steps Checklist */
.ghost-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.ghost-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #345B87;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #fff;
}

.ghost-step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 158, 217, 0.2);
    color: var(--ghost-tg);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Status Notifications & Dynamic Confirmation Card */
.ghost-faucet-status-box {
    padding: 20px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--ghost-border);
    margin-top: 16px;
}

.ghost-faucet-success-card {
    text-align: center;
    padding: 8px;
}

.ghost-faucet-success-card h2 {
    color: #60C45B;
    margin: 0 0 8px 0;
}

.ghost-tx-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 12px;
    border-radius: 8px;
    margin: 16px 0;
    text-align: left;
    word-break: break-all;
}

.ghost-tx-label {
    font-size: 0.75rem;
    color: #AEC4DD;
    display: block;
    margin-bottom: 4px;
}

.ghost-tx-link {
    color: var(--ghost-accent);
    text-decoration: none;
    font-family: monospace;
    font-size: 0.85rem;
}

.ghost-tx-link:hover {
    text-decoration: underline;
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .ghost-stats-bar {
        flex-direction: column;
        gap: 20px;
    }

    .ghost-stat-item {
        width: 100%;
    }

    .ghost-stat-divider {
        display: none;
    }

    .ghost-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}