/* ============================================================
   EXPENSES — Expenses View, Subscriptions
   ============================================================ */

/* ═══════════════════════════════════════════════════════════════
   SUBSCRIPTIONS SECTION
═══════════════════════════════════════════════════════════════ */
.sub-card {
    transition: all 0.22s ease;
}
.sub-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-strong);
}
.btn-icon-danger {
    background: none; border: none; cursor: pointer;
    width: 32px; height: 32px; border-radius: var(--radius-sm);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-tertiary); transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn-icon-danger svg { width: 16px; height: 16px; }
.btn-icon-danger:hover {
    background: var(--red-bg, #FEE2E2);
    color: var(--red);
}
.btn-icon-danger:active { transform: scale(0.9); }
[data-theme="dark"] .btn-icon-danger:hover {
    background: rgba(239, 68, 68, 0.15);
}

#subscriptions-view {
    animation: viewEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Subscriptions button - gold themed variant of debt-form-submit */
.btn-subscriptions {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 48px; margin-top: 0.8rem;
    border: none; border-radius: 14px;
    background: linear-gradient(135deg, var(--gold) 0%, #8B6508 100%);
    color: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 16px rgba(168, 123, 0, 0.25);
    position: relative; z-index: 1; overflow: hidden;
}
.btn-subscriptions::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, #8B6508 0%, var(--gold) 100%);
    opacity: 0; transition: opacity 0.3s; border-radius: inherit;
}
.btn-subscriptions svg,
.btn-subscriptions span { position: relative; z-index: 1; }
.btn-subscriptions svg { width: 18px; height: 18px; color: #fff; flex-shrink: 0; }
.btn-subscriptions:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(168, 123, 0, 0.35);
}
.btn-subscriptions:hover::before { opacity: 1; }
.btn-subscriptions:active {
    transform: translateY(0) scale(0.97);
    box-shadow: 0 2px 8px rgba(168, 123, 0, 0.2);
}
[data-theme="dark"] .btn-subscriptions {
    background: linear-gradient(135deg, #E0AD1C 0%, #B8960A 100%);
    box-shadow: 0 4px 16px rgba(224, 173, 28, 0.2);
}
[data-theme="dark"] .btn-subscriptions::before {
    background: linear-gradient(135deg, #B8960A 0%, #E0AD1C 100%);
}
[data-theme="dark"] .btn-subscriptions:hover {
    box-shadow: 0 6px 24px rgba(224, 173, 28, 0.3);
}

/* Subscription form */
#subscription-form {
    display: flex; flex-direction: column; gap: 0.7rem;
}
#subscription-form .form-group {
    display: flex; flex-direction: column; gap: 0.3rem;
}
#subscription-form label {
    font-size: 0.68rem; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.04em;
}
#subscription-form select,
#subscription-form input[type="text"],
#subscription-form input[type="number"],
#subscription-form input[type="date"],
#subscription-form textarea {
    padding: 9px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: var(--bg);
    color: var(--text-primary); font-family: inherit; font-size: 0.84rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%; box-sizing: border-box;
}
#subscription-form select:focus,
#subscription-form input:focus,
#subscription-form textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(181, 148, 0, 0.15);
}