
/* DOGE Wallet Dashboard - Dark Theme with Orange/Amber Accents */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0d1117;
    color: #e6edf3;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Color Variables */
:root {
    --primary-bg: #0d1117;
    --secondary-bg: #161b22;
    --tertiary-bg: #21262d;
    --accent-orange: #ff9500;
    --accent-amber: #ffb84d;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --warning-yellow: #ffc107;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --hover-bg: #262c36;
}

/* Icons (Using Unicode symbols as fallback) */
.icon-clock::before { content: "🕐"; }
.icon-wallet::before { content: "💳"; }
.icon-user::before { content: "👤"; }
.icon-bank::before { content: "🏦"; }
.icon-lock::before { content: "🔒"; }
.icon-lock-big::before { content: "🔒"; font-size: 2em; }
.icon-info::before { content: "ℹ️"; }
.icon-help::before { content: "❓"; }
.icon-send::before { content: "📤"; }
.icon-plus::before { content: "➕"; }
.icon-plus-circle::before { content: "⊕"; }
.icon-trash::before { content: "🗑️"; }
.icon-credit-card::before { content: "💳"; }
.icon-exchange::before { content: "🔄"; }
.icon-message::before { content: "💬"; }
.icon-chevron-down::before { content: "▼"; }
.icon-logout::before { content: "🚪"; }
.icon-login::before { content: "🔑"; }
.icon-alert::before { content: "⚠️"; }

/* Login Page Styles */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.login-card {
    background: var(--secondary-bg);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    color: var(--accent-orange);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.error-message {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--danger-red);
    color: var(--danger-red);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-orange);
    box-shadow: 0 0 0 2px rgba(255, 149, 0, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-amber) 100%);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 149, 0, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: var(--tertiary-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--accent-orange);
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: var(--danger-red);
    color: white;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.btn-delete {
    padding: 0.25rem 0.5rem;
    background: var(--danger-red);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #c82333;
}

.login-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Dashboard Styles */
.dashboard-container {
    min-height: 100vh;
    background: var(--primary-bg);
}

.dashboard-header {
    background: var(--secondary-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.dashboard-header h1 {
    color: var(--accent-orange);
    font-size: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-right span {
    color: var(--text-secondary);
}

.dashboard-main {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

/* Widget Styles */
.widget {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.widget.locked {
    opacity: 0.7;
    position: relative;
}

.widget.locked .widget-content > * {
    filter: blur(1px);
    pointer-events: none;
}

.lock-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--accent-orange);
    opacity: 0.8;
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-header h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-content {
    color: var(--text-secondary);
}

/* Balance Widgets */
.balance-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

.balance-status,
.balance-actions {
    margin-top: 1rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(40, 167, 69, 0.2);
    color: var(--success-green);
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: var(--warning-yellow);
}

.status-badge.inactive {
    background: rgba(108, 117, 125, 0.2);
    color: var(--text-muted);
}

.completion-date {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Account Details Widget */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(48, 54, 61, 0.5);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 500;
    color: var(--text-secondary);
}

.detail-row .value {
    color: var(--text-primary);
}

/* Withdrawal Accounts Widget */
.accounts-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.account-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--tertiary-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.account-item.active {
    border-color: var(--accent-orange);
}

.account-item.empty {
    border-style: dashed;
    opacity: 0.6;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.account-number {
    font-family: 'Monaco', 'Menlo', monospace;
    color: var(--text-primary);
}

.account-placeholder {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Transaction Widget */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--tertiary-bg);
    border-radius: 8px;
}

.transaction-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-type {
    font-weight: 500;
    color: var(--text-primary);
}

.transaction-amount {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: bold;
}

.transaction-date {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Crypto Exchange Widget */
.crypto-price {
    margin-bottom: 1.5rem;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.crypto-symbol {
    font-weight: bold;
    color: var(--accent-orange);
    font-size: 1.2rem;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-primary);
}

.price-change {
    font-size: 1rem;
    font-weight: 500;
}

.price-change.positive {
    color: var(--success-green);
}

.price-change.negative {
    color: var(--danger-red);
}

.exchange-form {
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Read More Widget */
.read-more-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

.read-more-content.collapsed {
    max-height: 100px;
}

.read-more-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--accent-orange);
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.toggle-btn.expanded {
    transform: rotate(180deg);
}

/* DOGE Card Widget */
.card-preview {
    margin-bottom: 1.5rem;
}

.doge-card-mockup {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-amber) 100%);
    color: #000;
    padding: 1.5rem;
    border-radius: 12px;
    font-weight: bold;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.doge-card-mockup::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(0,0,0,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.card-logo {
    font-size: 1.2rem;
    font-weight: bold;
}

.card-number {
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.card-holder {
    font-size: 0.9rem;
}

.feature-note {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Need Help Widget */
.help-actions {
    margin: 1.5rem 0;
}

.support-hours {
    text-align: center;
    color: var(--text-muted);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--secondary-bg);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.account-fields {
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .dashboard-main {
        padding: 1rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .widget {
        padding: 1rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .price-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .balance-amount {
        font-size: 1.8rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

        /* Your original styles from dashboard.php */
        .premium-widget {
          background: linear-gradient(120deg, #3a3532 0%, #5a564b 100%);
          border-radius: 16px;
          border: 2px solid #23232b;
          padding: 32px 32px 24px 32px;
          max-width: 1000px;
          margin: 32px auto;
          color: #fff;
          box-shadow: 0 2px 16px rgba(0,0,0,0.18);
          font-family: 'Segoe UI', 'Arial', sans-serif;
        }
        .premium-widget-header {
          display: flex;
          align-items: center;
          margin-bottom: 28px;
        }
        .premium-widget-icon {
          width: 56px;
          height: 56px;
          background: rgba(247,147,26,0.12);
          border-radius: 12px;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-right: 18px;
        }
        .premium-widget-title {
          font-size: 1.5rem;
          font-weight: bold;
          color: #fff;
        }
        .premium-widget-subtitle {
          font-size: 1.08rem;
          color: #d1d1d1;
          margin-top: 2px;
        }
        .premium-widget-features {
          display: flex;
          justify-content: space-between;
          margin: 18px 0 28px 0;
          text-align: center;
        }
        .premium-widget-feature-value {
          color: #ff9800;
          font-size: 2.1rem;
          font-weight: bold;
          margin-bottom: 2px;
        }
        .premium-widget-feature-label {
          color: #d1d1d1;
          font-size: 1.08rem;
        }
        .premium-widget-btn {
          width: 100%;
          background: #ff9800;
          color: #fff;
          font-size: 1.18rem;
          font-weight: bold;
          border: none;
          border-radius: 8px;
          padding: 16px 0;
          cursor: pointer;
          transition: background 0.2s;
          margin-top: 8px;
          box-shadow: 0 2px 8px rgba(255,152,0,0.10);
          text-align: center;
          display: inline-block;
          text-decoration: none;
        }
        .premium-widget-btn:hover {
          background: #f7931a;
        }
        .widget-locked {
          background: linear-gradient(120deg, #23232b 0%, #393945 100%);
          border-radius: 18px;
          border: 2px solid #23232b;
          box-shadow: 0 2px 16px rgba(0,0,0,0.18);
          padding: 28px 32px 24px 32px;
          max-width: 480px;
          margin: 32px auto;
          color: #fff;
          font-family: 'Segoe UI', 'Arial', sans-serif;
          position: relative;
          overflow: hidden;
        }
        .widget-locked-header {
          margin-bottom: 18px;
        }
        .widget-locked-title {
          display: flex;
          align-items: center;
          font-size: 1.35rem;
          font-weight: bold;
          color: #fff;
        }
        .widget-locked-badge {
          display: flex;
          align-items: center;
          background: rgba(255,152,0,0.13);
          color: #ff9800;
          font-size: 1rem;
          font-weight: 600;
          border-radius: 8px;
          padding: 3px 12px 3px 6px;
          margin-left: 16px;
          letter-spacing: 0.5px;
        }
        .widget-locked-content {
          padding: 18px 0 0 0;
        }
        .widget-locked-empty {
          text-align: center;
          padding: 24px 0;
        }
        .widget-locked-empty-title {
          font-size: 1.1rem;
          font-weight: 600;
          color: #ff9800;
          margin-bottom: 8px;
        }
        .widget-locked-empty-desc {
          color: #d1d1d1;
          font-size: 1.01rem;
          line-height: 1.5;
        }
.widget.withdrawal-accounts-modern {
    border: 2px solid #23232b;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.18);
    padding: 28px 32px 24px 32px;
    color: #fff;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    z-index: 1;
    width: 100%;
    max-width: none;
    box-sizing: border-box;

    grid-column: 1 / -1; /* always span full width */
}

@media (min-width: 992px) {
    .widget.withdrawal-accounts-modern {
        grid-column: span 2; /* span 2 out of 3 on desktop */
    }
}
        .wa-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
        }
        .wa-title {
            display: flex;
            align-items: center;
            font-size: 1.35rem;
            font-weight: bold;
            color: #fff;
        }
        .wa-btn-add, .wa-btn-delete {
            background: #ff9800;
            color: #fff;
            font-weight: 600;
            border: none;
            border-radius: 8px;
            padding: 6px 14px;
            font-size: 1rem;
            cursor: pointer;
            transition: background 0.2s;
        }
        .wa-btn-add:hover, .wa-btn-delete:hover {
            background: #f7931a;
        }
        .wa-btn-delete {
            background: #d32f2f;
            margin-left: 12px;
        }
        .wa-btn-delete:hover {
            background: #b71c1c;
        }
        .wa-list {
            display: flex;
            flex-direction: column;
            gap: 18px;
            margin-top: 10px;
        }
        .wa-item {
            display: flex;
            align-items: center;
            gap: 12px;
            background: #2d2d36;
            padding: 12px 16px;
            border-radius: 12px;
        }
        .wa-item.empty {
            justify-content: flex-start;
        }
        .wa-info {
            flex-grow: 1;
            color: #fff;
            font-size: 1rem;
        }
        .wa-field {
            display: flex;
            flex-direction: column;
            font-size: 0.9rem;
            color: #ccc;
            min-width: 120px;
        }
        .wa-field label {
            font-weight: 600;
            margin-bottom: 4px;
            color: #ff9800;
        }
        /* Modal styles */
        .wa-modal {
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(30,30,40,0.75);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }
        .wa-modal.active {
            display: flex;
        }
        .wa-modal-content {
            background: #23232b;
            border-radius: 14px;
            padding: 28px 32px;
            width: 360px;
            max-width: 90vw;
            box-shadow: 0 2px 16px rgba(0,0,0,0.18);
            color: #fff;
            text-align: left;
            position: relative;
        }
        .wa-modal-header {
            font-size: 1.3rem;
            font-weight: bold;
            margin-bottom: 16px;
            color: #ff9800;
        }
        .wa-modal-close {
            position: absolute;
            top: 12px;
            right: 16px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #fff;
            cursor: pointer;
        }
        .wa-modal-form label {
            display: block;
            margin: 12px 0 6px 0;
            font-weight: 600;
            color: #ff9800;
        }
        .wa-modal-form select, .wa-modal-form input {
            width: 100%;
            padding: 8px 10px;
            border-radius: 6px;
            border: 1px solid #393945;
            background: #2d2d36;
            color: #fff;
            font-size: 1rem;
        }
        .wa-modal-actions {
            margin-top: 20px;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }
        .wa-btn-primary {
            background: #ff9800;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }
        .wa-btn-primary:hover {
            background: #f7931a;
        }
        .wa-btn-cancel {
            background: #393945;
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
        }
        .error-message {
            color: #ff4c4c;
            font-weight: 600;
            margin-bottom: 12px;
            text-align: center;
        }
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default (mobile) */
    gap: 32px;
}

/* Desktop version */
@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .widget.withdrawal-accounts-modern {
        grid-column: span 2; /* spans 2 of 3 columns */
    }
}


