* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1f2937; line-height: 1.6; background: #fff; }
header { background: #1b2433; color: #fff; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid #2c3a4f; }
.nav { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: 1px; color: #fff; text-decoration: none; }
.logo span { color: #b8c0cc; }
nav ul { list-style: none; display: flex; gap: 20px; align-items: center; }
nav a { color: #c5ceda; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
nav a:hover { color: #fff; }
.lang-select { background: transparent; color: #c5ceda; border: 1px solid #3a4a63; border-radius: 4px; padding: 6px 8px; font-size: 0.9rem; cursor: pointer; }
.lang-select option { color: #1f2937; }
.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

.ticker-wrap { width: 100%; overflow: hidden; background: #0d131c; border-bottom: 1px solid #2c3a4f; display: flex; align-items: center; position: relative; }
.ticker-title { background: linear-gradient(90deg, #8a94a6, #b8c0cc); color: #fff; padding: 12px 24px; font-weight: 800; font-size: 0.85rem; white-space: nowrap; z-index: 2; letter-spacing: 1px; text-transform: uppercase; box-shadow: 4px 0 12px rgba(0,0,0,0.3); }
.ticker { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; padding: 12px 40px; color: #e2e6ec; font-size: 0.95rem; border-right: 1px solid #2c3a4f; gap: 8px; }
.ticker-item:hover { background: #1b2433; }
.ticker-dot { width: 8px; height: 8px; border-radius: 50%; background: #25d366; box-shadow: 0 0 8px #25d366; animation: pulse 2s infinite; }
.ticker-dot.red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.ticker-dot.blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.ticker-dot.gold { background: #f5c542; box-shadow: 0 0 8px #f5c542; }
.ticker-item strong { color: #fff; }
.ticker-price { color: #f5c542; font-weight: 700; margin-left: 6px; }
.ticker-item a { color: #25d366; text-decoration: none; margin-left: 10px; font-weight: 600; font-size: 0.85rem; border-bottom: 1px dashed #25d366; }
.ticker-item a:hover { color: #fff; border-color: #fff; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.3); } }
.ticker-wrap:hover .ticker { animation-play-state: paused; }

.hero { background: linear-gradient(135deg, #1b2433 0%, #263347 60%, #33425a 100%); color: #fff; padding: 80px 24px 100px; text-align: center; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #3b82f6, #25d366, #f5c542, #ef4444); }
.hero h1 { font-size: 2.8rem; font-weight: 800; max-width: 900px; margin: 0 auto 18px; line-height: 1.2; }
.hero h1 span { color: #b8c0cc; }
.hero p { font-size: 1.15rem; color: #b8c4d6; max-width: 700px; margin: 0 auto 32px; }
.btn { display: inline-block; background: #25d366; color: #fff; padding: 14px 36px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: background 0.2s, transform 0.1s, box-shadow 0.2s; box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4); }
.btn:hover { background: #1eb857; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6); }

.spot-offers { background: #f4f6f9; padding: 60px 24px; }
.spot-inner { max-width: 1200px; margin: 0 auto; }
.spot-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.spot-header h2 { font-size: 1.8rem; color: #1b2433; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.spot-header h2::before { content: "🔴"; font-size: 1rem; animation: pulse 1.5s infinite; }
.spot-header a { color: #1b2433; font-weight: 700; text-decoration: none; font-size: 0.95rem; border-bottom: 2px solid #8a94a6; padding-bottom: 2px; transition: border-color 0.2s; }
.spot-header a:hover { border-color: #1b2433; }
.spot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.spot-card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); position: relative; transition: transform 0.25s, box-shadow 0.25s; border: 1px solid #e2e6ec; overflow: hidden; cursor: pointer; }
.spot-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,0.1); border-color: #b8c0cc; }
.spot-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #8a94a6; }
.spot-card.hrc::before { background: #3b82f6; }
.spot-card.galv::before { background: #25d366; }
.spot-card.rebar::before { background: #ef4444; }

.spot-card .badge { position: absolute; top: 16px; right: 16px; font-size: 0.7rem; font-weight: 800; padding: 4px 10px; border-radius: 4px; letter-spacing: 0.5px; }
.spot-card.hrc .badge { background: #eff6ff; color: #3b82f6; border: 1px solid #bfdbfe; }
.spot-card.galv .badge { background: #f0fdf4; color: #25d366; border: 1px solid #bbf7d0; }
.spot-card.rebar .badge { background: #fef2f2; color: #ef4444; border: 1px solid #fecaca; }

.spot-card h4 { color: #1b2433; font-size: 1.15rem; margin-bottom: 4px; font-weight: 800; }
.spot-card .spec { font-size: 0.85rem; color: #5a6a80; margin-bottom: 16px; }
.spot-card .price-box { background: #f8fafc; padding: 12px; border-radius: 6px; margin-bottom: 12px; border-left: 3px solid #f5c542; }
.spot-card .price-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: #8a94a6; font-weight: 700; }
.spot-card .price { font-size: 1.4rem; font-weight: 800; color: #1b2433; }
.spot-card .price span { font-size: 0.85rem; color: #5a6a80; font-weight: 500; }
.spot-card .qty { font-size: 0.85rem; color: #1b2433; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.spot-card .qty::before { content: "📦"; font-size: 0.9rem; }
.spot-card .btn-sm { display: block; text-align: center; background: #1b2433; color: #fff; padding: 12px; border-radius: 6px; text-decoration: none; font-size: 0.95rem; font-weight: 700; transition: background 0.2s, transform 0.1s; }
.spot-card:hover .btn-sm { background: #25d366; transform: scale(1.02); }

.features { max-width: 1200px; margin: -40px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; z-index: 10; }
.feature-card { background: #fff; padding: 28px 24px; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,0.07); text-align: center; border-top: 3px solid #8a94a6; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; color: #1b2433; }
.feature-card p { font-size: 0.92rem; color: #5a6a80; }

.section { max-width: 1200px; margin: 0 auto; padding: 80px 24px; }
.section-title { text-align: center; font-size: 2rem; font-weight: 800; color: #1b2433; margin-bottom: 12px; }
.section-sub { text-align: center; color: #5a6a80; max-width: 640px; margin: 0 auto 48px; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card { background: #f4f6f9; border-radius: 8px; padding: 28px 24px; border-left: 4px solid #8a94a6; transition: transform 0.2s, box-shadow 0.2s; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.07); }
.product-card h3 { color: #1b2433; font-size: 1.1rem; margin-bottom: 10px; }
.product-card ul { list-style: none; font-size: 0.92rem; color: #4a5a70; }
.product-card li { padding: 4px 0; padding-left: 18px; position: relative; }
.product-card li::before { content: "›"; position: absolute; left: 0; color: #8a94a6; font-weight: 700; }
.product-card .sub-tag { display: inline-block; background: #e2e6ec; color: #4a5a70; font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; letter-spacing: 0.5px; }

.trust { background: #1b2433; color: #fff; text-align: center; }
.trust .section-title { color: #fff; }
.trust .section-sub { color: #b8c4d6; }
.trust-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.stat h3 { font-size: 2.4rem; color: #f5c542; font-weight: 800; }
.stat p { color: #b8c4d6; font-size: 0.95rem; }

.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { color: #1b2433; font-size: 1.3rem; margin-bottom: 16px; }
.contact-info p { color: #4a5a70; margin-bottom: 10px; font-size: 0.95rem; }
.contact-info a { color: #6f7a8d; text-decoration: none; font-weight: 600; }

form#mainContactForm { display: grid; gap: 14px; }
form#mainContactForm input, form#mainContactForm select, form#mainContactForm textarea { width: 100%; padding: 12px 14px; border: 1px solid #d4dce6; border-radius: 6px; font-size: 0.95rem; font-family: inherit; }
form#mainContactForm input:focus, form#mainContactForm select:focus, form#mainContactForm textarea:focus { outline: none; border-color: #8a94a6; }
form#mainContactForm textarea { resize: vertical; min-height: 100px; }
form#mainContactForm button { background: #1b2433; color: #fff; border: none; padding: 14px; border-radius: 6px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
form#mainContactForm button:hover { background: #25d366; }

.whatsapp { position: fixed; bottom: 24px; right: 24px; background: #25d366; color: #fff; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; text-decoration: none; box-shadow: 0 4px 16px rgba(37,211,102,0.4); z-index: 200; transition: transform 0.2s; }
.whatsapp:hover { transform: scale(1.1); }

footer { background: #141c28; color: #8a9bb3; padding: 40px 24px 24px; font-size: 0.88rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }
footer a { color: #8a9bb3; text-decoration: none; }
footer a:hover { color: #b8c0cc; }
.footer-bottom { max-width: 1200px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid #2c3a4f; text-align: center; font-size: 0.82rem; }

/* MODAL CSS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: none; align-items: center; justify-content: center; z-index: 1000; }
.modal-overlay.active { display: flex; }
.modal-content { background: #fff; border-radius: 10px; width: 90%; max-width: 600px; padding: 30px; position: relative; max-height: 90vh; overflow-y: auto; }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #666; border: none; background: none; }
.modal-header { margin-bottom: 20px; border-bottom: 1px solid #e2e6ec; padding-bottom: 15px; }
.modal-header h3 { color: #1b2433; margin-bottom: 5px; }
.modal-header .ref-no { font-size: 0.85rem; color: #f5c542; font-weight: 700; letter-spacing: 1px; background: #1b2433; display: inline-block; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px;}
.modal-body form { display: grid; gap: 12px; }
.modal-body input, .modal-body textarea { width: 100%; padding: 10px; border: 1px solid #d4dce6; border-radius: 6px; font-family: inherit;}
.modal-body button[type="submit"] { background: #25d366; color: #fff; padding: 12px; border: none; border-radius: 6px; font-weight: bold; cursor: pointer; margin-top: 10px; }
.file-attachments { display: flex; gap: 10px; margin-top: 15px; margin-bottom: 15px; }
.file-btn { background: #f4f6f9; border: 1px solid #d4dce6; padding: 8px 12px; border-radius: 4px; text-decoration: none; color: #1b2433; font-size: 0.9rem; display: flex; align-items: center; gap: 5px; font-weight: 600;}
.file-btn:hover { background: #e2e6ec; }

@media (max-width: 900px) { .features, .products, .trust-stats, .spot-grid { grid-template-columns: 1fr 1fr; } .contact-wrap { grid-template-columns: 1fr; } .footer-inner { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 2.1rem; } }
@media (max-width: 640px) { nav ul { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #1b2433; flex-direction: column; padding: 20px 24px; gap: 16px; } nav ul.open { display: flex; } .menu-toggle { display: block; } .features, .products, .trust-stats, .spot-grid { grid-template-columns: 1fr; } .footer-inner { grid-template-columns: 1fr; } .hero { padding: 60px 20px 80px; } .hero h1 { font-size: 1.7rem; } .section { padding: 56px 20px; } .spot-header { flex-direction: column; align-items: flex-start; gap: 10px; } .ticker-title { display: none; } }

[dir="rtl"] .ticker-item { border-right: none; border-left: 1px solid #2c3a4f; }
[dir="rtl"] .spot-card .price-box { border-left: none; border-right: 3px solid #f5c542; }
[dir="rtl"] .spot-card .badge { right: auto; left: 16px; }
[dir="rtl"] .whatsapp { right: auto; left: 24px; }