@import url('https://fonts.googleapis.com/css2?family=Fustat:wght@300;400;500;600;700&family=Kufam:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Beblon Brand Colors - Exact Match */
    --copper: hsl(25, 60%, 50%);
    --copper-light: hsl(25, 55%, 65%);
    --copper-dark: hsl(25, 65%, 35%);
    --gold: hsl(38, 75%, 55%);
    --gold-glow: hsl(38, 80%, 65%);
    --charcoal: hsl(30, 15%, 6%);
    --charcoal-light: hsl(30, 12%, 12%);
    --warm-gray: hsl(30, 8%, 25%);
    --cream: hsl(35, 30%, 92%);
    
    /* Luxury Design System */
    --gradient-luxury: linear-gradient(135deg, var(--copper) 0%, var(--gold) 100%);
    --gradient-dark: linear-gradient(180deg, hsl(30, 15%, 4%) 0%, hsl(30, 12%, 10%) 100%);
    --shadow-luxury: 0 8px 32px -8px hsla(25, 60%, 50%, 0.25);
    --shadow-glow: 0 0 40px hsla(38, 75%, 55%, 0.15);
    --shadow-deep: 0 20px 60px -10px rgba(0, 0, 0, 0.5);
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.05);
    
    /* Transitions */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-luxury: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--charcoal);
    background-image: 
        radial-gradient(at 20% 10%, hsla(25, 60%, 50%, 0.12) 0px, transparent 50%),
        radial-gradient(at 80% 90%, hsla(38, 75%, 55%, 0.08) 0px, transparent 50%),
        radial-gradient(at 50% 50%, hsla(30, 15%, 8%, 1) 0px, transparent 100%);
    background-attachment: fixed;
    color: var(--cream);
    font-family: 'Fustat', -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    position: relative;
}

/* Premium Noise Texture */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.05"/%3E%3C/svg%3E');
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.container {
    width: 100%;
    max-width: 520px;
    padding: 4rem 1.75rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

/* ========================================
   PROFILE SECTION
   ======================================== */
.profile-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-wrapper {
    width: 140px;
    height: 140px;
    position: relative;
    margin-bottom: 0.5rem;
}

.logo-wrapper::before {
    content: "";
    position: absolute;
    inset: -12px;
    background: var(--gradient-luxury);
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(20px);
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.25; }
}

.profile-img-container {
    width: 100%;
    height: 100%;
    background: var(--charcoal-light);
    border: 2px solid var(--glass-border);
    padding: 18px;
    border-radius: 50%;
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-deep);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.brand-name {
    font-family: 'Kufam', sans-serif;
    font-size: 2.75rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    background: var(--gradient-luxury);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(224, 168, 48, 0.3);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 1rem;
    color: var(--cream);
    opacity: 0.6;
    letter-spacing: 0.05em;
    font-weight: 400;
    line-height: 1.6;
}

/* ========================================
   ACTIONS BAR
   ======================================== */
.actions-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.action-btn {
    width: 56px;
    height: 56px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-luxury);
    color: var(--cream);
    font-size: 1.25rem;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-luxury);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.action-btn:hover {
    border-color: var(--copper);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(204, 112, 51, 0.25);
}

.action-btn:hover::before {
    opacity: 0.15;
}

.action-btn:active {
    transform: translateY(-2px) scale(1.02);
}

/* ========================================
   LINKS GRID
   ======================================== */
.links-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.75rem;
    text-decoration: none;
    color: var(--cream);
    transition: all var(--transition-luxury);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(30px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-luxury);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.link-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-luxury);
    transform: scaleY(0);
    transition: transform var(--transition-luxury);
}

.link-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--copper);
    box-shadow: var(--shadow-luxury), var(--shadow-deep);
}

.link-card:hover::before {
    opacity: 0.08;
}

.link-card:hover::after {
    transform: scaleY(1);
}

.icon-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--charcoal-light);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.25rem;
    transition: all var(--transition-luxury);
    position: relative;
    z-index: 1;
}

.link-card:hover .icon-box {
    background: var(--gradient-luxury);
    border-color: transparent;
    transform: rotate(-5deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.icon-box img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: brightness(1.1);
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    z-index: 1;
}

.link-subtitle {
    font-size: 0.7rem;
    color: var(--cream);
    opacity: 0.4;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

.link-title {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.arrow-icon {
    opacity: 0.3;
    transition: all var(--transition-luxury);
    font-size: 1.25rem;
    position: relative;
    z-index: 1;
}

.link-card:hover .arrow-icon {
    opacity: 1;
    color: var(--gold);
    transform: translateX(6px);
}

/* ========================================
   RATING VIEW
   ======================================== */
.rating-view {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem 2rem;
    border-radius: 2.5rem;
    text-align: center;
    backdrop-filter: blur(40px);
    box-shadow: var(--shadow-deep);
}

.rating-header {
    margin-bottom: 2rem;
}

.stars-row {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2.5rem 0;
}

.big-star {
    font-size: 3.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

.big-star:hover {
    transform: scale(1.2) rotate(-10deg);
    color: rgba(224, 168, 48, 0.3);
}

.big-star.active {
    color: var(--gold);
    text-shadow: var(--shadow-glow);
    transform: scale(1.15);
}

.feedback-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 1.5rem;
    color: var(--cream);
    font-family: inherit;
    font-size: 1rem;
    resize: none;
    margin-bottom: 2rem;
    height: 140px;
    outline: none;
    transition: all var(--transition-base);
}

.feedback-input::placeholder {
    color: var(--cream);
    opacity: 0.3;
}

.feedback-input:focus {
    border-color: var(--copper);
    background: var(--glass-hover);
    box-shadow: 0 0 0 4px rgba(204, 112, 51, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    background: var(--gradient-luxury);
    border: none;
    border-radius: 1.5rem;
    color: var(--charcoal);
    font-weight: 700;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all var(--transition-luxury);
    box-shadow: var(--shadow-luxury);
    letter-spacing: 0.05em;
}

.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-luxury), var(--shadow-deep);
}

.btn-submit:active {
    transform: translateY(-2px);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes slideIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.reveal {
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* ========================================
   RTL SUPPORT
   ======================================== */
[dir="rtl"] .icon-box { 
    margin-right: 0; 
    margin-left: 1.25rem; 
}

[dir="rtl"] .brand-name { 
    font-family: 'Kufam', sans-serif; 
}

[dir="rtl"] .arrow-icon {
    transform: scaleX(-1);
}

[dir="rtl"] .link-card:hover .arrow-icon {
    transform: scaleX(-1) translateX(6px);
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar { 
    width: 8px; 
}

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

::-webkit-scrollbar-thumb { 
    background: var(--glass-border); 
    border-radius: 10px; 
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 3rem 1.25rem 2rem;
    }
    
    .brand-name {
        font-size: 2.25rem;
    }
    
    .logo-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .link-card {
        padding: 1.25rem;
    }
    
    .icon-box {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }
}
