/* OWL Credits Styles */

/* ============================================================
   CREDITS DASHBOARD WRAP
   ============================================================ */
.owl-credits-wrap {
    padding: 10px 0;
    color: #ffffff;
}

.owl-credits-wrap h3 {
    color: #00AA44 !important;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

/* ============================================================
   BALANCE ROW
   ============================================================ */
.owl-credits-balance-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    margin-bottom: 30px;
    align-items: stretch;
}

.owl-credits-balance-row:has(.owl-credits-director-card) {
    grid-template-columns: 200px 1fr 1fr;
}

.owl-credits-balance-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #00AA44;
    border-radius: 8px;
    padding: 24px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.owl-credits-balance-icon {
    font-size: 2rem;
}

.owl-credits-balance-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: #00AA44;
    line-height: 1;
}

.owl-credits-balance-label {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.owl-credits-info-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.owl-credits-director-card {
    border-color: #00AA44;
    background: #0d2d1a;
}

.owl-credits-info-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.owl-credits-info-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.owl-credits-info-text strong {
    color: #ffffff;
    font-size: 0.95rem;
}

.owl-credits-info-text span {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.5;
}

.owl-credits-adwall-input {
    width: 100%;
    padding: 8px 10px;
    background: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    color: #00AA44;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 4px;
    box-sizing: border-box;
}

.owl-credits-adwall-input:focus {
    outline: none;
    border-color: #00AA44;
}

/* ============================================================
   HOW TO EARN SECTION
   ============================================================ */
.owl-credits-earn-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.owl-credits-earn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.owl-credits-earn-item {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    padding: 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 4px 10px;
    align-items: start;
}

.owl-credits-earn-icon {
    grid-row: 1;
    grid-column: 1;
    font-size: 1.4rem;
    line-height: 1;
}

.owl-credits-earn-label {
    grid-row: 1;
    grid-column: 2;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    align-self: center;
}

.owl-credits-earn-amount {
    grid-row: 1;
    grid-column: 3;
    color: #00AA44;
    font-weight: 900;
    font-size: 1rem;
    align-self: center;
    white-space: nowrap;
}

.owl-credits-earn-desc {
    grid-row: 2;
    grid-column: 2 / 4;
    color: #666;
    font-size: 0.75rem;
}

/* ============================================================
   TRANSACTION HISTORY
   ============================================================ */
.owl-credits-history {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 24px;
}

.owl-credits-history-count {
    color: #666;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}

.owl-credits-no-history {
    color: #555;
    font-size: 0.9rem;
    text-align: center;
    padding: 20px;
}

.owl-credits-history-table-wrap {
    overflow-x: auto;
}

.owl-credits-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.owl-credits-history-table thead th {
    background: #111;
    color: #888;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-weight: 600;
}

.owl-credits-history-table tbody tr {
    border-bottom: 1px solid #222;
    transition: background 0.15s;
}

.owl-credits-history-table tbody tr:hover {
    background: #1f1f1f;
}

.owl-credits-history-table td {
    padding: 10px 14px;
    color: #ccc;
    vertical-align: top;
}

.owl-credits-history-table td small {
    color: #555;
    font-size: 0.78rem;
}

.owl-credits-date {
    white-space: nowrap;
    color: #888 !important;
    font-size: 0.85rem !important;
}

.owl-credits-note {
    color: #999 !important;
    font-size: 0.85rem !important;
    max-width: 300px;
}

.owl-credits-positive {
    color: #00AA44 !important;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.owl-credits-negative {
    color: #cc3333 !important;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .owl-credits-balance-row {
        grid-template-columns: 1fr;
    }

    .owl-credits-balance-row:has(.owl-credits-director-card) {
        grid-template-columns: 1fr;
    }

    .owl-credits-earn-grid {
        grid-template-columns: 1fr 1fr;
    }

    .owl-credits-history-table thead th:nth-child(3) {
        display: none;
    }
    .owl-credits-history-table td:nth-child(3) {
        display: none;
    }
}

@media (max-width: 480px) {
    .owl-credits-earn-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   DAILY SOAR STREAK SECTION
   ============================================================ */
.owl-soar-section {
    background: #1a1a1a;
    border: 1px solid #333;
    border-top: 3px solid #00AA44;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 30px;
}

.owl-soar-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.owl-soar-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.owl-soar-icon .owl-soar-svg {
    width: 64px;
    height: 48px;
}

.owl-soar-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.owl-soar-title {
    color: #00AA44 !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.owl-soar-count {
    color: #ccc;
    font-size: 0.95rem;
}

.owl-soar-count strong {
    color: #00AA44;
    font-size: 1.3rem;
}

/* Progress Bar */
.owl-soar-progress-wrap {
    margin-bottom: 24px;
}

.owl-soar-progress-bar {
    background: #111;
    border: 1px solid #333;
    border-radius: 99px;
    height: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}

.owl-soar-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007733, #00AA44, #00e865);
    border-radius: 99px;
    transition: width 0.6s ease;
    min-width: 4px;
}

.owl-soar-progress-label {
    color: #888;
    font-size: 0.85rem;
}

.owl-soar-progress-label strong {
    color: #ffffff;
}

/* Milestone Cards */
.owl-soar-milestones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.owl-soar-milestone {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 16px 14px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s;
}

.owl-soar-milestone-hit {
    border-color: #007733;
    background: #0a1f0a;
    opacity: 0.75;
}

.owl-soar-milestone-current {
    border-color: #00AA44;
    background: #0d2d1a;
    box-shadow: 0 0 0 2px rgba(0,170,68,0.2);
}

.owl-soar-milestone-days {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.owl-soar-milestone-credits {
    color: #00AA44;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.owl-soar-milestone-prize {
    color: #ffd700;
    font-size: 0.78rem;
    line-height: 1.4;
    margin-bottom: 8px;
    padding: 6px 8px;
    background: rgba(255,215,0,0.06);
    border-radius: 4px;
    border: 1px solid rgba(255,215,0,0.15);
}

.owl-soar-milestone-badge {
    font-size: 0.75rem;
    color: #555;
    margin-top: 6px;
}

.owl-soar-milestone-hit .owl-soar-milestone-badge {
    color: #007733;
}

.owl-soar-milestone-badge-next {
    color: #00AA44 !important;
    font-weight: 700;
}

.owl-soar-tip {
    color: #555;
    font-size: 0.82rem;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid #222;
}

/* Mini widget (for member dashboard stat box) */
.owl-soar-mini {
    margin-top: 10px;
}

.owl-soar-mini-header {
    color: #ccc;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.owl-soar-mini-header strong {
    color: #00AA44;
}

.owl-soar-mini-bar-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.owl-soar-mini-bar {
    flex: 1;
    background: #222;
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}

.owl-soar-mini-fill {
    height: 100%;
    background: linear-gradient(90deg, #007733, #00AA44);
    border-radius: 99px;
    min-width: 3px;
    transition: width 0.4s ease;
}

.owl-soar-mini-label {
    color: #666;
    font-size: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
    .owl-soar-milestones {
        grid-template-columns: 1fr;
    }
}
