/**
 * Noah Labs Calculator - DARK THEME
 * Modern dark design for crypto calculator
 */

/* ========================================
   BASE STYLES - DARK MODE
======================================== */
.noah-calculator-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
}

.noah-calc-section,
.noah-tracker-section {
    background: linear-gradient(145deg, #000000 0%, #161616 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 215, 0, 0.1);
    border: 1px solid #131217;
    transition: all 0.3s ease;
}

.noah-calc-section:hover,
.noah-tracker-section:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 215, 0, 0.3);
    border-color: #222027;
    transform: translateY(-2px);
}

.noah-tokenomics-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 165, 0, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid #131217;
}

.tokenomics-title {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    margin: 0;
    line-height: 1.5;
}

.presale-highlight {
    display: inline-block;
    font-size: 24px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    letter-spacing: 1px;
}

.noah-calc-header,
.noah-tracker-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #0d0d0f;
}

.noah-calc-title,
.noah-tracker-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.noah-calc-subtitle,
.noah-tracker-subtitle {
    font-size: 16px;
    color: #b0b0b0;
    margin: 0;
}

/* ========================================
   HEADERS - DARK
======================================== */
.noah-calc-header,
.noah-tracker-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #131217;
}

.noah-calc-title,
.noah-tracker-title {
    font-size: 28px;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.noah-calc-subtitle,
.noah-tracker-subtitle {
    font-size: 16px;
    color: #b0b0b0;
    margin: 0;
}

/* ========================================
   FORM ELEMENTS - DARK
======================================== */
.noah-calc-form {
    margin-top: 25px;
}

.noah-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.noah-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.noah-label {
    font-size: 14px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noah-input {
    width: 100%;
    padding: 5px 16px;
    font-size: 16px;
    border: 1px solid #131217;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.noah-input:focus {
    outline: none;
    border-color: #ff7019;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.1), 0 0 20px rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}

.noah-input:disabled {
    background: rgba(0, 0, 0, 0.2);
    color: #666;
    cursor: not-allowed;
    border-color: #ff7019;
}

.noah-input::placeholder {
    color: #666;
}

.helper-text {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

/* ========================================
   BUTTONS - DARK
======================================== */
.noah-button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 25px 0;
}

.noah-btn {
    flex: 1;
    min-width: 200px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.noah-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: #ff7019;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.noah-btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.noah-btn-primary {
    background: linear-gradient(135deg, #ff7019 0%, #ffa019 100%);
    color: #000;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.noah-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.6);
}

.noah-btn-primary:active {
    transform: translateY(-1px);
}

.noah-btn-secondary {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border: 1px solid #131217;
}

.noah-btn-secondary:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ff8b19;
}

.noah-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ========================================
   MESSAGES & ALERTS - DARK
======================================== */
.noah-error {
    background: rgba(211, 47, 47, 0.15);
    border-left: 4px solid #ff7019;
    padding: 14px 16px;
    border-radius: 8px;
    color: #ff6b6b;
    font-size: 14px;
    margin: 15px 0;
    backdrop-filter: blur(10px);
}

.noah-results {
    margin-top: 25px;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   INFO BOX - DARK
======================================== */
.noah-info-box {
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid #131217;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.noah-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #131217;
}

.noah-info-icon {
    width: 24px;
    height: 24px;
    color: #FFD700;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.4));
}

.noah-info-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #FFD700;
}

.noah-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.noah-info-list li {
    padding: 10px 0;
    border-bottom: 1px solid #131217;
    font-size: 15px;
    color: #d0d0d0;
    transition: all 0.3s ease;
}

.noah-info-list li:hover {
    background: rgba(255, 215, 0, 0.08);
    padding-left: 15px;
    border-radius: 6px;
}

.noah-info-list li:last-child {
    border-bottom: none;
}

.noah-info-list li strong,
.noah-info-list li span:not(.muted) {
    color: #FFD700;
    font-weight: 700;
}

.noah-info-list .muted {
    color: #888;
    font-size: 13px;
}

.noah-note {
    font-style: italic;
    color: #999 !important;
}

/* ========================================
   TABLE - DARK
======================================== */
.noah-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #131217;
}

.noah-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.4);
    font-size: 14px;
}

.noah-table thead {
    background: linear-gradient(135deg, #ff7019 0%, #FFA500 100%);
    color: #000;
}

.noah-table th,
.noah-table td {
    padding: 14px;
    text-align: center;
    border: 1px solid #131217;
}

.noah-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.noah-table tbody tr {
    background: rgba(0, 0, 0, 0.2);
    color: #e0e0e0;
}

.noah-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.3);
}

.noah-table tbody tr:hover {
    background: rgba(255, 215, 0, 0.1);
    transition: background 0.2s ease;
}

/* ========================================
   CHART - DARK (FULL WIDTH FIX)
======================================== */
.noah-chart-container {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid #131217;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.noah-chart-container canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 400px;
    display: block;
}

/* ========================================
   TRACKER SPECIFIC - DARK
======================================== */
.noah-contract-info {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #131217;
}

.contract-label {
    font-weight: 600;
    color: #FFD700;
}

.contract-address {
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #131217;
    font-family: "Courier New", monospace;
    font-size: 13px;
    color: #FFD700;
    word-break: break-all;
}

.noah-btn-copy {
    background: linear-gradient(135deg, #ff7019 0%, #FFA500 100%);
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #000;
    font-weight: 600;
    font-size: 13px;
}

.noah-btn-copy:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.noah-btn-copy.copied {
    background: linear-gradient(135deg, #ffa619 0%, #ffab19 100%);
}

.noah-bscscan-link {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px dashed #131217;
}

.noah-bscscan-link:hover {
    color: #ff7019;
    border-bottom-color: #ff7019;
}

.noah-tracker-stats-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.tracker-stat {
    padding: 30px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.tracker-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.tracker-stat:hover {
    transform: translateY(-6px);
}

.terminting-stat {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    border-color: #ff7019;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
}

.terminting-stat .stat-label {
    color: #4facfe;
}

.tersisa-stat {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2) 0%, rgba(255, 140, 0, 0.2) 100%);
    border-color: #ff7019;
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
}

.tersisa-stat .stat-label {
    color: #FFA500;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.stat-label {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.stat-value {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

.loading-dots {
    animation: blink 1.4s infinite both;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0.3;
    }
    40% {
        opacity: 1;
    }
}

.noah-tracker-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #131217;
}

.tracker-update {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.update-icon {
    margin-right: 6px;
}

.tracker-note {
    font-size: 13px;
    color: #888;
}

.tracker-note a {
    color: #FFD700;
    text-decoration: none;
    border-bottom: 1px dashed #131217;
}

.tracker-note a:hover {
    color: #FFA500;
    border-bottom-color: #FFA500;
}

.noah-supply-info {
    background: rgba(0, 123, 255, 0.1);
    border-left: 4px solid #ff7015;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.supply-item {
    padding: 6px 0;
    font-size: 15px;
    color: #d0d0d0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.supply-item.highlight {
    font-weight: 700;
    color: #FFD700;
    font-size: 16px;
}

.highlight-value {
    color: #FFA500;
}

.supply-icon {
    font-size: 18px;
}

.tooltip-trigger {
    border-bottom: 1px dashed #131217;
    cursor: help;
    position: relative;
}

.tooltip-trigger:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.95);
    color: #FFD700;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid #131217;
}

.tooltip-trigger:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    margin-bottom: 2px;
}

/* ========================================
   TRACKER STATS CARDS - DARK
======================================== */
.noah-tracker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tracker-stat {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.tracker-stat::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.tracker-stat:hover {
    transform: translateY(-6px);
}

.supply-stat {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 165, 0, 0.2) 100%);
    border-color: #ff7019;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.minted-stat {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(238, 90, 111, 0.2) 100%);
    border-color: #ff7019;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.remaining-stat {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2) 0%, rgba(0, 242, 254, 0.2) 100%);
    border-color: #ff7019;
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.3);
}

.stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #b0b0b0;
    margin-bottom: 10px;
}

.supply-stat .stat-label {
    color: #FFD700;
}

.minted-stat .stat-label {
    color: #ff6b6b;
}

.remaining-stat .stat-label {
    color: #4facfe;
}

.stat-value {
    font-size: 36px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.loading-dots {
    animation: blink 1.4s infinite both;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0.3;
    }
    40% {
        opacity: 1;
    }
}

.noah-tracker-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #131217;
}

.tracker-update {
    font-size: 13px;
    color: #999;
    margin-bottom: 10px;
}

.update-icon {
    margin-right: 6px;
}

.tracker-note {
    font-size: 13px;
    color: #888;
}

.tracker-note a {
    color: #FFD700;
    text-decoration: none;
    border-bottom: 1px dashed #131217;
}

.tracker-note a:hover {
    color: #FFA500;
    border-bottom-color: #FFA500;
}

/* ========================================
   RESPONSIVE - DARK
======================================== */
@media (max-width: 768px) {
    .noah-calc-section,
    .noah-tracker-section {
        padding: 20px 15px;
    }
    
    .tokenomics-title {
        font-size: 14px;
    }
    
    .presale-highlight {
        font-size: 18px;
        display: block;
        margin-top: 8px;
    }
    
    .noah-calc-title,
    .noah-tracker-title {
        font-size: clamp(20px, 5vw, 24px);
    }
    
    .noah-calc-subtitle,
    .noah-tracker-subtitle {
        font-size: clamp(13px, 3.5vw, 15px);
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .noah-contract-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contract-address {
        font-size: 11px;
        width: 100%;
    }
    
    .noah-tracker-stats-new {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tokenomics-title {
        font-size: 12px;
    }
    
    .presale-highlight {
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
}

.noah-results.show {
    animation: fadeIn 0.4s ease, successPulse 0.6s ease;
}

/* ========================================
   SCROLLBAR - DARK
======================================== */
.noah-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.noah-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.noah-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.3);
    border-radius: 10px;
}

.noah-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.5);
}

/* ========================================
   SELECTION - DARK
======================================== */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #fff;
}

::-moz-selection {
    background: rgba(255, 215, 0, 0.3);
    color: #fff;
}

/* ========================================
   PRINT STYLES
======================================== */
@media print {
    .noah-button-group,
    .noah-btn-copy,
    .noah-bscscan-link {
        display: none !important;
    }
    
    .noah-calc-section,
    .noah-tracker-section {
        box-shadow: none !important;
        border: 1px solid #ddd;
        background: white !important;
        color: black !important;
    }
    
    .noah-chart-container {
        page-break-inside: avoid;
    }
}