/* Savvy TV Design System */

:root {
    --bg-deep: #050510;
    --accent-primary: #7C3AED;
    --accent-secondary: #22D3EE;
    --accent-whatsapp: #25D366;
    --glass-bg: rgba(15, 15, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --gradient-main: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-deep);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* --- Layout --- */
.page-wrapper {
    position: relative;
    min-height: 100vh;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 40%),
                radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.1), transparent 40%);
}

.content-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    position: relative;
    z-index: 2;
}

/* --- Navbar --- */
header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

nav a:hover, nav a.active {
    color: var(--text-main);
    text-shadow: 0 0 10px var(--accent-secondary);
}

.btn-portal {
    background: var(--gradient-main);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* --- Footer --- */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: var(--accent-secondary);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Common Components --- */

/* Hero Styles */
.hero-common {
    padding: 6rem 0 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-common h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff 30%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    margin: 0 auto 2rem;
    border-radius: 2px;
}

/* Buttons */
.btn-primary-custom {
    background: var(--gradient-main);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.btn-secondary-custom {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.btn-secondary-custom:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-secondary);
}

/* Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.15);
}

/* --- Platform Grid --- */
.platform-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.platform-btn {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
    min-width: 220px;
}

.platform-btn:hover {
    border-color: var(--accent-secondary);
    transform: scale(1.05);
}

.platform-text { text-align: left; }
.platform-text .small { font-size: 0.7rem; opacity: 0.7; display: block; text-transform: uppercase; }
.platform-text .main { font-size: 1.1rem; font-weight: 700; display: block; }

/* --- Pricing Grid --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.plan-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.plan-card.popular {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--accent-primary);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-price { margin: 2rem 0; }
.price-value { font-size: 3.5rem; font-weight: 800; }
.price-currency { font-size: 1.2rem; color: var(--text-muted); vertical-align: super; }
.price-period { color: var(--text-muted); display: block; }

.plan-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    text-align: left;
}

.plan-features li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plan-features li svg { color: var(--accent-secondary); flex-shrink: 0; }

.btn-plan {
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    text-align: center;
}

.plan-card.popular .btn-plan {
    background: var(--gradient-main);
    border: none;
}

.egp-price {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--accent-secondary);
    opacity: 0.8;
}

/* --- Forms --- */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.9rem; }
.form-control-custom {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-control-custom:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

.btn-submit-custom {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* --- Auth Wrapper --- */
.auth-wrapper {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up { animation: fadeIn 1s ease-out forwards; }

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    .pricing-grid, .contact-grid-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .content-container { padding: 0 1.5rem; }
    nav { display: none; }
    .hero-common h1 { font-size: 2.5rem; }
    .platform-grid { flex-direction: column; align-items: center; }
}
