/* ===== SETTINGS PAGE STYLES - SCOPED TO .setting-container ===== */
/* This ensures settings styles don't affect other pages */

.setting-container {
    display: flex;
    min-height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
    color: #90ff6c;
}

/* All styles below are scoped to .setting-container */

/* ===== SIDEBAR ===== */
.setting-sidebar {
    width: 220px;
    background: rgba(14, 52, 30, 0.15);
    border: 1px solid rgba(144, 255, 108, 0.2);
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 20px;
    backdrop-filter: blur(10px);
}

.setting-tab-button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(144, 255, 108, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    margin-bottom: 6px;
    text-align: left;
}

.setting-tab-button span {
    color: inherit !important;
}

.setting-tab-button:hover {
    background: rgba(144, 255, 108, 0.1);
    border-color: rgba(144, 255, 108, 0.2);
    color: #90ff6c;
}

.setting-tab-button.active {
    background: rgba(144, 255, 108, 0.15);
    border-color: rgba(144, 255, 108, 0.3);
    color: #90ff6c;
    box-shadow: 0 2px 8px rgba(144, 255, 108, 0.1);
}

.setting-tab-button svg {
    flex-shrink: 0;
}

/* ===== CONTENT AREA ===== */
.setting-content {
    flex: 1;
    min-width: 0;
}

.setting-tab-panel {
    display: none;
}

.setting-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ===== HEADER ===== */
.setting-header {
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 24px;
}

.setting-header h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    color: #90ff6c !important;
}

.setting-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(144, 255, 108, 0.7) !important;
}

.setting-header p {
    color: rgba(144, 255, 108, 0.7) !important;
}

/* ===== CARDS ===== */
.setting-card {
    background: rgba(14, 52, 30, 0.15);
    border: 1px solid rgba(144, 255, 108, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.setting-card-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(144, 255, 108, 0.1);
}

.setting-card-header h3 {
    margin: 0;
    font-size: 16px;
    color: #90ff6c !important;
}

.setting-card h3,
.setting-card span,
.setting-card p,
.setting-card label {
    color: #90ff6c !important;
}

/* ===== STATS GRID ===== */
.setting-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.setting-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(144, 255, 108, 0.15);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.setting-stat-item:hover {
    border-color: rgba(144, 255, 108, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.setting-stat-icon {
    font-size: 20px;
    line-height: 1;
}

.setting-stat-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.setting-stat-label {
    font-size: 12px;
    color: rgba(144, 255, 108, 0.6) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: #90ff6c !important;
}

/* ===== FORM ===== */
.setting-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

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

.setting-label {
    font-size: 14px;
    color: #90ff6c !important;
    font-weight: 500;
}

.setting-label span {
    color: #90ff6c !important;
}

.setting-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.setting-input-prefix {
    position: absolute;
    left: 16px;
    font-size: 16px;
    color: rgba(144, 255, 108, 0.7);
    font-weight: 600;
}

.setting-input-icon {
    position: absolute;
    left: 16px;
    color: rgba(144, 255, 108, 0.5);
}

.setting-input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(144, 255, 108, 0.2);
    border-radius: 8px;
    color: #90ff6c;
    font-size: 14px;
    transition: all 0.2s ease;
}

.setting-input-wrapper .setting-input {
    padding-left: 40px;
}

.setting-input:focus {
    outline: none;
    border-color: #90ff6c;
    box-shadow: 0 0 0 3px rgba(144, 255, 108, 0.1);
}

.setting-input::placeholder {
    color: rgba(144, 255, 108, 0.4);
}

.setting-hint {
    font-size: 12px;
    color: rgba(144, 255, 108, 0.5) !important;
}

/* ===== BUTTONS ===== */
.setting-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.setting-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2cff2c 0%, #90ff6c 100%);
    border: none;
    border-radius: 8px;
    color: #0e341e !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.setting-btn-primary span {
    color: #0e341e !important;
}

.setting-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(144, 255, 108, 0.3);
}

.setting-btn-primary:active {
    transform: translateY(0);
}

/* ===== PRICING GRID ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.pricing-card {
    position: relative;
    background: rgba(14, 52, 30, 0.15);
    border: 1px solid rgba(144, 255, 108, 0.2);
    border-radius: 12px;
    padding: 24px 20px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(144, 255, 108, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.pricing-card-popular {
    border: 2px solid #90ff6c;
    box-shadow: 0 4px 20px rgba(144, 255, 108, 0.2);
}

.pricing-card-popular:hover {
    box-shadow: 0 4px 20px rgba(144, 255, 108, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: rgba(14, 52, 30, 0.9);
    border: 1px solid rgba(144, 255, 108, 0.3);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #90ff6c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-badge-popular {
    background: linear-gradient(135deg, #2cff2c 0%, #90ff6c 100%);
    color: #0e341e !important;
    border: none;
}

.pricing-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(144, 255, 108, 0.1);
}

.pricing-title {
    font-size: 18px;
    color: #90ff6c !important;
    margin: 0 0 12px 0;
}

.pricing-card h3,
.pricing-card span,
.pricing-card p {
    color: #90ff6c !important;
}

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.pricing-currency {
    font-size: 20px;
    color: rgba(144, 255, 108, 0.7) !important;
    margin-top: 6px;
}

.pricing-amount {
    font-size: 36px;
    font-weight: 700;
    color: #90ff6c !important;
    line-height: 1;
}

.pricing-period {
    font-size: 14px;
    color: rgba(144, 255, 108, 0.6) !important;
    margin: 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: rgba(144, 255, 108, 0.8);
    font-size: 13px;
}

.pricing-features li span {
    color: rgba(144, 255, 108, 0.8) !important;
}

.pricing-features li svg {
    flex-shrink: 0;
    color: #90ff6c;
}

.pricing-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(144, 255, 108, 0.1);
    border: 1px solid rgba(144, 255, 108, 0.3);
    border-radius: 8px;
    color: #90ff6c !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pricing-btn span {
    color: inherit !important;
}

.pricing-btn:hover {
    background: rgba(144, 255, 108, 0.2);
    border-color: #90ff6c;
    transform: translateY(-1px);
}

.pricing-btn-popular {
    background: linear-gradient(135deg, #2cff2c 0%, #90ff6c 100%);
    border: none;
    color: #0e341e !important;
}

.pricing-btn-popular span {
    color: #0e341e !important;
}

.pricing-btn-popular:hover {
    box-shadow: 0 4px 16px rgba(144, 255, 108, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .setting-container {
        flex-direction: column;
    }

    .setting-sidebar {
        width: 100%;
        position: static;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 16px;
    }

    .setting-tab-button {
        flex-shrink: 0;
        margin-bottom: 0;
        min-width: 140px;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .setting-container {
        padding: 16px;
    }

    .setting-header h2 {
        font-size: 20px;
    }

    .setting-card {
        padding: 20px;
    }

    .setting-stats-grid {
        grid-template-columns: 1fr;
    }

    .setting-form-row {
        grid-template-columns: 1fr;
    }

    .pricing-amount {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .setting-sidebar {
        padding: 12px;
    }

    .setting-tab-button {
        min-width: 120px;
        padding: 12px;
        font-size: 14px;
    }

    .setting-tab-button svg {
        width: 18px;
        height: 18px;
    }

    .pricing-card {
        padding: 20px 16px;
    }
}
