/* =====================================================
   TimeToTime Admin Panel - Styles
   ===================================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: #14141e;
    --border-color: #2a2a3a;
    --border-glow: #3b82f6;
    --text-primary: #f0f0f5;
    --text-secondary: #8888a0;
    --text-muted: #555566;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-yellow: #f59e0b;
    --accent-red: #ef4444;
    --accent-pink: #ec4899;
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-purple: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-green: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-yellow: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --font-display: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-display);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
}

.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -200px;
    right: -200px;
}

.bg-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: -100px;
    left: -100px;
}

/* =====================================================
   Unauthorized Overlay
   ===================================================== */

.unauthorized-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.unauthorized-overlay.active {
    display: flex;
}

.unauthorized-content {
    text-align: center;
    padding: 3rem;
    max-width: 450px;
}

.unauthorized-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.unauthorized-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.unauthorized-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.unauthorized-subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.main-container.hidden {
    display: none;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
}

.header-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: white;
    font-family: var(--font-mono);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Wallet Section */
.wallet-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wallet-address {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.connect-btn {
    padding: 0.5rem 1.25rem;
    background: var(--gradient-blue);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
}

.connect-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.connect-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.connect-btn.connected {
    display: none;
}

/* Main Container */
.main-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-icon.blue { background: rgba(59, 130, 246, 0.15); }
.stat-icon.green { background: rgba(16, 185, 129, 0.15); }
.stat-icon.purple { background: rgba(139, 92, 246, 0.15); }
.stat-icon.yellow { background: rgba(245, 158, 11, 0.15); }
.stat-icon.cyan { background: rgba(6, 182, 212, 0.15); }
.stat-icon.pink { background: rgba(236, 72, 153, 0.15); }

.stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-change {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Reserve Pool Card */
.reserve-pool-card {
    position: relative;
}

.reserve-pool-card::before {
    background: var(--gradient-yellow);
}

.reserve-claim-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.tab-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.tab-btn.active {
    background: var(--gradient-blue);
    color: white;
}

/* Panels */
.panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.card-full {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.card-header-actions {
    display: flex;
    gap: 0.5rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    font-size: 1rem;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* =====================================================
   Percentage Input Styles - HIGHLIGHTED
   ===================================================== */

.percentage-input-group.highlighted {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    animation: highlightPulse 3s ease-in-out infinite;
}

@keyframes highlightPulse {
    0%, 100% { border-color: rgba(139, 92, 246, 0.4); }
    50% { border-color: rgba(236, 72, 153, 0.6); }
}

.percentage-input-group.highlighted::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: var(--gradient-purple);
    border-radius: 0 0 3px 3px;
}

.percentage-icon {
    font-size: 1rem;
}

.recommended-badge {
    background: var(--gradient-purple);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
}

.percentage-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.percentage-input {
    padding-right: 3rem !important;
}

.percentage-suffix {
    position: absolute;
    right: 1rem;
    color: var(--accent-purple);
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 1rem;
}

.percentage-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    flex-wrap: wrap;
}

.preview-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.preview-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.preview-formula {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Input Divider */
.input-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    gap: 1rem;
}

.input-divider::before,
.input-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.input-divider span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 10px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--gradient-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: var(--gradient-yellow);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn.loading .btn-text {
    opacity: 0;
}

.btn.loading .btn-loader {
    display: block;
    position: absolute;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.warning-box-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.warning-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Info Display */
.info-display {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.pool-info-inline,
.royalty-info-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.info-address {
    font-size: 0.7rem;
    word-break: break-all;
}

/* Accumulation Display */
.accumulation-display {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.accumulation-value {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.accumulation-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

/* Pool Accumulations Grid */
.pool-accumulations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pool-accum-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.2s ease;
}

.pool-accum-item:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.pool-accum-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.pool-accum-value {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 0.25rem;
}

.pool-accum-currency {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Calculation Box */
.calculation-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row.calc-total {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 2px solid rgba(16, 185, 129, 0.4);
    border-bottom: none;
}

.calc-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.calc-value {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 600;
}

.calc-total .calc-label {
    font-weight: 600;
    color: var(--text-primary);
}

.calc-total .calc-value {
    font-size: 1.1rem;
    color: var(--accent-cyan);
}

/* Reset All Section */
.reset-all-section {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Pool Counts Grid */
.pool-counts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.pool-count-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease;
}

.pool-count-item:hover {
    border-color: var(--accent-blue);
}

.pool-count-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pool-count-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* User Details */
.user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.detail-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.detail-address {
    font-size: 0.7rem;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.package-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
}

.package-item.active {
    border-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.package-item.inactive {
    opacity: 0.5;
}

.package-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.package-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.package-status.active {
    color: var(--accent-green);
}

.package-status.inactive {
    color: var(--text-muted);
}

/* Default Referrer Notice */
.default-referrer-notice {
    text-align: center;
    padding: 3rem 2rem;
}

.default-referrer-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.default-referrer-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.default-referrer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    min-width: 320px;
    max-width: 420px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-word;
}

.toast.success { border-color: var(--accent-green); }
.toast.success .toast-icon { color: var(--accent-green); }
.toast.error { border-color: var(--accent-red); }
.toast.error .toast-icon { color: var(--accent-red); }
.toast.warning { border-color: var(--accent-yellow); }
.toast.warning .toast-icon { color: var(--accent-yellow); }
.toast.info { border-color: var(--accent-blue); }
.toast.info .toast-icon { color: var(--accent-blue); }

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header { padding: 0.5rem 1rem; }
    .main-container { padding: 1rem; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; }
    .stat-card { padding: 1rem; }
    .stat-value { font-size: 1.3rem; }
    .packages-grid { grid-template-columns: repeat(3, 1fr); }
    .user-details-grid { grid-template-columns: 1fr; }
    .toast-container { left: 1rem; right: 1rem; bottom: 1rem; }
    .toast { min-width: auto; max-width: none; }
    .accumulation-value { font-size: 2rem; }
    .logo-icon { width: 30px; height: 30px; font-size: 0.65rem; }
    .logo-text { font-size: 0.95rem; }
    .connect-btn { padding: 0.4rem 0.9rem; font-size: 0.8rem; }
    .wallet-address { font-size: 0.7rem; padding: 0.4rem 0.5rem; }
    .percentage-input-group.highlighted { padding: 1rem; }
    .unauthorized-content { padding: 2rem 1.5rem; }
    .unauthorized-icon { font-size: 4rem; }
    .unauthorized-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .header { padding: 0.4rem 0.75rem; }
    .main-container { padding: 0.75rem; }
    .wallet-address { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
    .tab-btn { padding: 0.5rem 0.6rem; font-size: 0.7rem; }
    .tab-nav { gap: 0.25rem; padding: 0.35rem; }
    .packages-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-value { font-size: 1.1rem; }
    .stat-label { font-size: 0.7rem; }
    .stat-change { font-size: 0.65rem; }
    .stat-icon { width: 32px; height: 32px; font-size: 0.9rem; }
    .pool-accum-value { font-size: 1rem; }
    .pool-count-value { font-size: 1.1rem; }
    .card { padding: 1rem; }
    .card-title { font-size: 0.9rem; }
    .btn { padding: 0.7rem 1.25rem; font-size: 0.85rem; }
    .percentage-preview { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .preview-value { font-size: 1.2rem; }
    .unauthorized-content { padding: 1.5rem 1rem; }
    .unauthorized-icon { font-size: 3rem; }
    .unauthorized-title { font-size: 1.25rem; }
    .unauthorized-text { font-size: 0.95rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

::selection { background: var(--accent-blue); color: white; }