:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #334155;
    --text: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray);
    position: relative;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

/* Forms */
.form-group {
    margin-bottom: 15px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--gray);
    background: #1e293b;
    color: white;
    box-sizing: border-box;
}

/* Song View */
.song-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 20px;
}

.controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 15px;
}

.controls > div {
    background: #1e293b;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    box-sizing: border-box;
    border: 1px solid #334155;
}

.controls > div label, .controls > div span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.controls select, .controls .btn {
    font-size: 0.75rem !important;
}

.chord-sheet {
    font-family: 'Inter', sans-serif;
    white-space: pre-wrap;
    padding: 20px;
    border-radius: 12px;
    line-height: 2.5;
    /* Extra space for chords */
}

.chord {
    color: var(--secondary);
    font-weight: bold;
    position: relative;
    top: 0.09em !important;
    /* Position above text */
    margin-right: 2px;
}

/* Section Headers ([head] tag) */
.section-header {
    display: block;
    color: var(--secondary);
    font-weight: bold;
    font-size: 0.8rem;
    margin-top: 1.2rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Subscription Cards */
.pricing-card {
    background: #1e293b;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--gray);
    max-width: 400px;
    margin: 0 auto;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.payment-methods {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.payment-btn {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.gcash {
    background: #007dfe;
    color: white;
}

.maya {
    background: #22c55e;
    color: white;
}

/* PWA Toasts */
.pwa-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    border: 1px solid #334155;
    animation: slideUp 0.3s ease-out;
    max-width: 90%;
    width: max-content;
}

.pwa-toast.warning {
    border-left: 4px solid #f59e0b;
}

.pwa-toast.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

@keyframes slideUp {
    from { bottom: -50px; opacity: 0; }
    to { bottom: 20px; opacity: 1; }
}

.offline-mode .logo::after {
    content: ' (Offline)';
    font-size: 0.6rem;
    color: #f59e0b;
    vertical-align: super;
}

/* Mobile */
@media (max-width: 600px) {
    .container {
        padding: 10px;
    }

    .chord-sheet {
        padding: 10px;
    }

    .nav-links {
        font-size: 0.9rem;
    }

    .nav-links a {
        margin-left: 10px;
    }
}